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 314 by francois, Sat Feb 18 04:49:46 2012 UTC vs.
Revision 401 by francois, Tue May 28 19:16:03 2013 UTC

# Line 15 | Line 15 | 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(OPTION_SHARED "Magic Compilation avec Shared" ON)
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 70 | 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)
# Line 81 | Line 96 | if(ENABLE_STEP)
96   add_definitions(-DBREP_STEP)
97   endif(ENABLE_STEP)
98  
99 < set(INTERNAL_LIBRARIES fichier carte geometrie outil parseur mecanique optimisation mailleur vectorisation diamesh)
100 < if (ENABLE_SAT)
101 < list (APPEND INTERNAL_LIBRARIES sat)
87 < endif (ENABLE_SAT)
88 < if (ENABLE_STEP)
89 < list (APPEND INTERNAL_LIBRARIES step)
90 < endif (ENABLE_STEP)
91 < if (ENABLE_OCC)
92 < list (APPEND INTERNAL_LIBRARIES reconstruction)
93 < endif (ENABLE_OCC)
94 <
99 > if (ENABLE_ENGLISH)
100 > add_definitions(-DUSE_ENGLISH)
101 > endif(ENABLE_ENGLISH)
102  
103   if(ENABLE_IBREP)
104 < add_subdirectory(IBrep)
105 < if (OPTION_SHARED)
99 < list (APPEND INTERNAL_LIBRARIES ibrep-dynamic)
100 < else (OPTION_SHARED)
101 < list (APPEND INTERNAL_LIBRARIES ibrep-static)
102 < endif(OPTION_SHARED)  
103 < list (APPEND INTERNAL_LIBRARIES toIbrep)
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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines