ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/CMakeLists.txt
(Generate patch)

Comparing magic/CMakeLists.txt (file contents):
Revision 255 by francois, Wed Jul 14 20:20:19 2010 UTC vs.
Revision 401 by francois, Tue May 28 19:16:03 2013 UTC

# Line 11 | Line 11 | endif(DEFINED CMAKE_BUILD_TYPE)
11  
12   project(MAGIC)
13  
14 < option(ENABLE_OCC "Enable Occ" ON)
15 < option(ENABLE_SAT "Enable Sat" ON)
16 < option(ENABLE_STEP "Enable Step" ON)
17 < option(ENABLE_IBREP "Enable IBREP" OFF)
18 < option(ENABLE_GNURBS "Enable gnurbs" OFF)
14 > option(ENABLE_OCC "Magic Enable Occ" ON)
15 > option(ENABLE_SAT "Magic Enable Sat" ON)
16 > option(ENABLE_STEP "Magic Enable Step" ON)
17 > option(ENABLE_IBREP "Magic Enable IBREP" OFF)
18 > option(ENABLE_TOIBREP "Magic Enable TOIBREP" OFF)
19 > option(ENABLE_NUTIL "Magic Enable NUTIL (pour la visu VTK)" OFF)
20 > option(ENABLE_TEST "Magic Enable test" OFF)
21 > option(ENABLE_ENGLISH "Magic Use English" OFF)
22 >
23 >
24 > set(CADXFEM_PATH "../cadxfem" CACHE STRING "CADXFEM Path")
25 >
26  
27   if(ENABLE_OCC)
28    if(WIN32)
# Line 69 | Line 76 | if(ENABLE_OCC)
76    endif(NUM_OCC_LIBS EQUAL NUM_OCC_LIBS_REQUIRED)
77   endif(ENABLE_OCC)
78  
79 + execute_process(COMMAND "date" "+%Y" OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE annee)
80 + execute_process(COMMAND "date" "+%Y" OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE dateannee)
81 + SET(ANNEE -DVERSION=\"${annee}\")
82 + SET(DATEANNEE -DDATEVERSION=\"1999-${dateannee}\")
83 +
84 + add_definitions(${ANNEE})
85 + add_definitions(${DATEANNEE})
86 +
87 +
88   if(ENABLE_SAT)
89   add_definitions(-DBREP_SAT)
90   endif(ENABLE_SAT)
91  
92 + if(ENABLE_OCC)
93 + add_definitions(-DBREP_OCC)
94 + endif(ENABLE_OCC)
95   if(ENABLE_STEP)
96   add_definitions(-DBREP_STEP)
97   endif(ENABLE_STEP)
98  
99 <
100 < add_subdirectory(lib)
101 < add_subdirectory(app)
99 > if (ENABLE_ENGLISH)
100 > add_definitions(-DUSE_ENGLISH)
101 > endif(ENABLE_ENGLISH)
102  
103   if(ENABLE_IBREP)
104 < add_subdirectory(IBrep)
104 > add_subdirectory(${CADXFEM_PATH}/IBrep "${CMAKE_CURRENT_BINARY_DIR}/IBrep")
105 > add_definitions(-DIBREP)
106   endif(ENABLE_IBREP)
107 + if(ENABLE_NUTIL)
108 + add_subdirectory(${CADXFEM_PATH}/nutil "${CMAKE_CURRENT_BINARY_DIR}/nutil")
109 + add_definitions(-DVTK_INTERFACE)
110 + endif(ENABLE_NUTIL)
111 +
112 + message(STATUS "Configuration de MAGiC${annee}:1999-${dateannee}")
113 +
114 +
115 +
116 + add_subdirectory(lib)
117 + add_subdirectory(app)
118  
88 if(ENABLE_GNURBS)
89 add_subdirectory(gnurbs)
90 endif(ENABLE_GNURBS)
119  
120  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines