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 381 by francois, Sat Dec 8 22:29:43 2012 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_NUTIL "Magic Enable NUTIL (pour la visu VTK)" OFF)
19   option(ENABLE_TEST "Magic Enable test" OFF)
20 < option(OPTION_SHARED "Magic Compilation avec Shared" ON)
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)
# Line 70 | Line 75 | if(ENABLE_OCC)
75    endif(NUM_OCC_LIBS EQUAL NUM_OCC_LIBS_REQUIRED)
76   endif(ENABLE_OCC)
77  
78 + execute_process(COMMAND "date" "+%Y" OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE annee)
79 + execute_process(COMMAND "date" "+%Y" OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE dateannee)
80 + SET(ANNEE -DVERSION=\"${annee}\")
81 + SET(DATEANNEE -DDATEVERSION=\"1999-${dateannee}\")
82 +
83 + add_definitions(${ANNEE})
84 + add_definitions(${DATEANNEE})
85 +
86 +
87   if(ENABLE_SAT)
88   add_definitions(-DBREP_SAT)
89   endif(ENABLE_SAT)
# Line 81 | Line 95 | if(ENABLE_STEP)
95   add_definitions(-DBREP_STEP)
96   endif(ENABLE_STEP)
97  
98 < set(INTERNAL_LIBRARIES fichier carte geometrie outil parseur mecanique optimisation mailleur vectorisation diamesh)
99 < if (ENABLE_SAT)
100 < 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 <
98 > if (ENABLE_ENGLISH)
99 > add_definitions(-DUSE_ENGLISH)
100 > endif(ENABLE_ENGLISH)
101  
102   if(ENABLE_IBREP)
103 < add_subdirectory(IBrep)
104 < 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)
103 > add_subdirectory(${CADXFEM_PATH}/IBrep "${CMAKE_CURRENT_BINARY_DIR}/IBrep")
104 > add_definitions(-DIBREP)
105   endif(ENABLE_IBREP)
106 + if(ENABLE_NUTIL)
107 + add_subdirectory(${CADXFEM_PATH}/nutil "${CMAKE_CURRENT_BINARY_DIR}/nutil")
108 + add_definitions(-DVTK_INTERFACE)
109 + endif(ENABLE_NUTIL)
110 +
111 + message(STATUS "Configuration de MAGiC${annee}:1999-${dateannee}")
112 +
113  
114  
115   add_subdirectory(lib)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines