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_TEST "Magic Enable test" OFF) |
19 |
> |
option(OPTION_SHARED "Magic Compilation avec Shared" ON) |
20 |
|
|
21 |
|
if(ENABLE_OCC) |
22 |
|
if(WIN32) |
78 |
|
add_definitions(-DBREP_STEP) |
79 |
|
endif(ENABLE_STEP) |
80 |
|
|
81 |
+ |
set(INTERNAL_LIBRARIES fichier carte geometrie outil parseur materiau optimisation mailleur vectorisation diamesh) |
82 |
+ |
if (ENABLE_SAT) |
83 |
+ |
list (APPEND INTERNAL_LIBRARIES sat) |
84 |
+ |
endif (ENABLE_SAT) |
85 |
+ |
if (ENABLE_STEP) |
86 |
+ |
list (APPEND INTERNAL_LIBRARIES step) |
87 |
+ |
endif (ENABLE_STEP) |
88 |
+ |
if (ENABLE_OCC) |
89 |
+ |
list (APPEND INTERNAL_LIBRARIES reconstruction) |
90 |
+ |
endif (ENABLE_OCC) |
91 |
|
|
81 |
– |
add_subdirectory(lib) |
82 |
– |
add_subdirectory(app) |
92 |
|
|
93 |
|
if(ENABLE_IBREP) |
94 |
|
add_subdirectory(IBrep) |
95 |
+ |
if (OPTION_SHARED) |
96 |
+ |
list (APPEND INTERNAL_LIBRARIES ibrep-dynamic) |
97 |
+ |
else (OPTION_SHARED) |
98 |
+ |
list (APPEND INTERNAL_LIBRARIES ibrep-static) |
99 |
+ |
endif(OPTION_SHARED) |
100 |
+ |
list (APPEND INTERNAL_LIBRARIES toIbrep) |
101 |
|
endif(ENABLE_IBREP) |
102 |
|
|
103 |
< |
if(ENABLE_GNURBS) |
104 |
< |
add_subdirectory(gnurbs) |
105 |
< |
endif(ENABLE_GNURBS) |
103 |
> |
|
104 |
> |
add_subdirectory(lib) |
105 |
> |
add_subdirectory(app) |
106 |
> |
|
107 |
|
|
108 |
|
|