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_NUTIL "Magic Enable NUTIL (pour la visu VTK)" OFF) |
19 |
> |
option(ENABLE_TEST "Magic Enable test" OFF) |
20 |
> |
option(ENABLE_ENGLISH "Magic Use English" OFF) |
21 |
> |
|
22 |
> |
|
23 |
> |
set(CADXFEM_PATH "../cadxfem" CACHE STRING "CADXFEM Path") |
24 |
> |
|
25 |
|
|
26 |
|
if(ENABLE_OCC) |
27 |
|
if(WIN32) |
79 |
|
add_definitions(-DBREP_SAT) |
80 |
|
endif(ENABLE_SAT) |
81 |
|
|
82 |
+ |
if(ENABLE_OCC) |
83 |
+ |
add_definitions(-DBREP_OCC) |
84 |
+ |
endif(ENABLE_OCC) |
85 |
|
if(ENABLE_STEP) |
86 |
|
add_definitions(-DBREP_STEP) |
87 |
|
endif(ENABLE_STEP) |
88 |
|
|
89 |
< |
|
90 |
< |
add_subdirectory(lib) |
91 |
< |
add_subdirectory(app) |
89 |
> |
if (ENABLE_ENGLISH) |
90 |
> |
add_definitions(-DUSE_ENGLISH) |
91 |
> |
endif(ENABLE_ENGLISH) |
92 |
|
|
93 |
|
if(ENABLE_IBREP) |
94 |
< |
add_subdirectory(IBrep) |
94 |
> |
add_subdirectory(${CADXFEM_PATH}/IBrep "${CMAKE_CURRENT_BINARY_DIR}/IBrep") |
95 |
> |
|
96 |
|
endif(ENABLE_IBREP) |
97 |
+ |
if(ENABLE_NUTIL) |
98 |
+ |
add_subdirectory(${CADXFEM_PATH}/nutil "${CMAKE_CURRENT_BINARY_DIR}/nutil") |
99 |
+ |
|
100 |
+ |
endif(ENABLE_NUTIL) |
101 |
+ |
|
102 |
+ |
add_subdirectory(lib) |
103 |
+ |
add_subdirectory(app) |
104 |
|
|
88 |
– |
if(ENABLE_GNURBS) |
89 |
– |
add_subdirectory(gnurbs) |
90 |
– |
endif(ENABLE_GNURBS) |
105 |
|
|
106 |
|
|