Mercurial > hg > orthanc-stone
comparison CMakeLists.txt @ 113:2eca030792aa wasm
using the Orthanc Framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 Sep 2017 15:32:32 +0200 |
parents | fcec0ab44054 |
children |
comparison
equal
deleted
inserted
replaced
112:948f86e61e83 | 113:2eca030792aa |
---|---|
10 include(Resources/CMake/OrthancStone.cmake) | 10 include(Resources/CMake/OrthancStone.cmake) |
11 add_library(OrthancStone STATIC ${ORTHANC_STONE_SOURCES}) | 11 add_library(OrthancStone STATIC ${ORTHANC_STONE_SOURCES}) |
12 | 12 |
13 | 13 |
14 ##################################################################### | 14 ##################################################################### |
15 ## CMake parameters for Google Test | |
16 ##################################################################### | |
17 | |
18 SET(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") | |
19 SET(USE_GTEST_DEBIAN_SOURCE_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") | |
20 | |
21 include(${ORTHANC_ROOT}/Resources/CMake/GoogleTestConfiguration.cmake) | |
22 | |
23 | |
24 ##################################################################### | |
25 ## Build all the sample applications | 15 ## Build all the sample applications |
26 ##################################################################### | 16 ##################################################################### |
27 | 17 |
28 macro(BuildSample Target Sample) | 18 macro(BuildSample Target Sample) |
29 add_executable(${Target} Applications/Samples/SampleMainSdl.cpp) | 19 add_executable(${Target} |
20 Applications/Samples/SampleMainSdl.cpp | |
21 ${APPLICATIONS_SOURCES} | |
22 ) | |
30 set_target_properties(${Target} PROPERTIES COMPILE_DEFINITIONS ORTHANC_STONE_SAMPLE=${Sample}) | 23 set_target_properties(${Target} PROPERTIES COMPILE_DEFINITIONS ORTHANC_STONE_SAMPLE=${Sample}) |
31 target_link_libraries(${Target} OrthancStone) | 24 target_link_libraries(${Target} OrthancStone) |
32 endmacro() | 25 endmacro() |
33 | 26 |
34 BuildSample(OrthancStoneEmpty 1) | 27 # TODO - Re-enable this stuff! |
35 BuildSample(OrthancStoneTestPattern 2) | 28 |
36 BuildSample(OrthancStoneSingleFrame 3) | 29 #BuildSample(OrthancStoneEmpty 1) |
37 BuildSample(OrthancStoneSingleVolume 4) | 30 #BuildSample(OrthancStoneTestPattern 2) |
31 #BuildSample(OrthancStoneSingleFrame 3) | |
32 #BuildSample(OrthancStoneSingleVolume 4) | |
38 #BuildSample(OrthancStoneBasicPetCtFusion 5) | 33 #BuildSample(OrthancStoneBasicPetCtFusion 5) |
39 #BuildSample(OrthancStoneSynchronizedSeries 6) | 34 #BuildSample(OrthancStoneSynchronizedSeries 6) |
40 #BuildSample(OrthancStoneLayoutPetCtFusion 7) | 35 #BuildSample(OrthancStoneLayoutPetCtFusion 7) |
41 | 36 |
42 | 37 |
43 ##################################################################### | 38 ##################################################################### |
44 ## Build the unit tests | 39 ## Build the unit tests |
45 ##################################################################### | 40 ##################################################################### |
46 | 41 |
47 add_executable(UnitTests | 42 add_executable(UnitTests |
48 ${GTEST_SOURCES} | 43 ${GOOGLE_TEST_SOURCES} |
49 UnitTestsSources/UnitTestsMain.cpp | 44 UnitTestsSources/UnitTestsMain.cpp |
50 ) | 45 ) |
51 | 46 |
52 target_link_libraries(UnitTests OrthancStone) | 47 target_link_libraries(UnitTests OrthancStone) |
53 | 48 |