ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/microstructure/CMakeLists.txt
Revision: 988
Committed: Fri Oct 26 06:45:48 2018 UTC (6 years, 10 months ago) by couturad
Content type: text/plain
File size: 1520 byte(s)
Log Message:
Correction bugs CMakeLists de lib/microstructure

File Contents

# Content
1 file(GLOB SRC src/*.cpp)
2 set(MICROSTRUCTURE_SOURCE ${SRC})
3 if(ENABLE_PROJECT_CHRONO)
4 include_directories(src ../outil/src
5 ../template/src
6 ../parseur/src
7 ../sat/src
8 ../step/src
9 ../materiau/src
10 ../geometrie/src
11 ../carte/src
12 ../fichier/src
13 ../mailleur/src
14 ../mailleur_auto/src
15 ../aster/src
16 ../../${POLYCRISTAUX_PATH}/src
17 ../../${POLYCRISTAUX_PATH}/voro++-0.4.6/src
18 ../../app/magic_application/src ${EXTERNAL_INCLUDES} ${CHRONO_INCLUDE_DIRS})
19 else ()
20 include_directories(src ../outil/src
21 ../template/src
22 ../parseur/src
23 ../sat/src
24 ../step/src
25 ../materiau/src
26 ../geometrie/src
27 ../carte/src
28 ../fichier/src
29 ../mailleur/src
30 ../mailleur_auto/src
31 ../aster/src
32 ../../${POLYCRISTAUX_PATH}/src
33 ../../${POLYCRISTAUX_PATH}/voro++-0.4.6/src
34 ../../app/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 geometrie ${POLYOCCLIB} ${EXTERNAL_LIBRARIES} ${CHRONO_LIBRARIES})
48 else()
49 target_link_libraries(microstructure geometrie ${POLYOCCLIB} ${EXTERNAL_LIBRARIES})
50 endif(ENABLE_PROJECT_CHRONO)