ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/microstructure/CMakeLists.txt
Revision: 1063
Committed: Wed Jun 2 17:59:49 2021 UTC (4 years, 2 months ago) by francois
Content type: text/plain
File size: 1554 byte(s)
Log Message:
reorganisation des repertoires de magic suite

File Contents

# Content
1 file(GLOB SRC src/*.cpp)
2 set(MICROSTRUCTURE_SOURCE ${SRC})
3 if(ENABLE_PROJECT_CHRONO)
4 include_directories(src ../constante/src
5 ../template/src
6 ../sat/src
7 ../step/src
8 ../materiau/src
9 ../geometrie/src
10 ../carte/src
11 ../fichier/src
12 ../mailleur/src
13 ../mailleur_auto/src
14 ../aster/src
15 ../../addin/outil/src
16 ../../addin/poly_occ/src
17 ../../addin/poly_occ/voro++-0.4.6/src
18 ../../lib/magic_application/src ${EXTERNAL_INCLUDES} ${CHRONO_INCLUDE_DIRS})
19 else ()
20 include_directories(src ../constante/src
21 ../template/src
22 ../sat/src
23 ../step/src
24 ../materiau/src
25 ../geometrie/src
26 ../carte/src
27 ../fichier/src
28 ../mailleur/src
29 ../mailleur_auto/src
30 ../aster/src
31 ../../addin/outil/src
32 ../../addin/poly_occ/src
33 ../../addin/poly_occ/voro++-0.4.6/src
34 ../../lib/magic_application/src ${EXTERNAL_INCLUDES} )
35 endif(ENABLE_PROJECT_CHRONO)
36 add_library(microstructure SHARED ${MICROSTRUCTURE_SOURCE} )
37 set (POLYOCCLIB)
38 if (ENABLE_PROJECT_POLYCRISTAUX)
39 list(APPEND POLYOCCLIB poly_occ)
40 endif(ENABLE_PROJECT_POLYCRISTAUX)
41
42 if(ENABLE_PROJECT_CHRONO)
43 set_target_properties(microstructure PROPERTIES
44 COMPILE_FLAGS "${CHRONO_CXX_FLAGS}"
45 COMPILE_DEFINITIONS "CHRONO_DATA_DIR=\"${CHRONO_DATA_DIR}\""
46 LINK_FLAGS "${CHRONO_CXX_FLAGS}")
47 target_link_libraries(microstructure magic_application geometrie ${POLYOCCLIB} ${EXTERNAL_LIBRARIES} ${CHRONO_LIBRARIES})
48 else()
49 target_link_libraries(microstructure magic_application geometrie ${POLYOCCLIB} ${EXTERNAL_LIBRARIES})
50 endif(ENABLE_PROJECT_CHRONO)