Mercurial > hg > orthanc-stone
comparison CMakeLists.txt @ 6:b8100f56d513
doxygen
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 17 Oct 2016 16:44:34 +0200 |
parents | 9d25def63301 |
children | 946377d1c992 |
comparison
equal
deleted
inserted
replaced
4:00ff2cd06d13 | 6:b8100f56d513 |
---|---|
1 cmake_minimum_required(VERSION 2.8) | 1 cmake_minimum_required(VERSION 2.8) |
2 project(OrthancStone) | 2 project(OrthancStone) |
3 | 3 |
4 | |
5 ##################################################################### | |
6 ## Build a static library containing the Orthanc Stone framework | |
7 ##################################################################### | |
8 | |
4 include(Resources/CMake/OrthancStone.cmake) | 9 include(Resources/CMake/OrthancStone.cmake) |
10 add_library(OrthancStone STATIC ${ORTHANC_STONE_SOURCES}) | |
5 | 11 |
6 add_library(OrthancStone STATIC ${ORTHANC_STONE_SOURCES}) | 12 |
13 ##################################################################### | |
14 ## Build all the sample applications | |
15 ##################################################################### | |
7 | 16 |
8 macro(BuildSample Target Sample) | 17 macro(BuildSample Target Sample) |
9 add_executable(${Target} Samples/SampleMainSdl.cpp) | 18 add_executable(${Target} Samples/SampleMainSdl.cpp) |
10 set_target_properties(${Target} PROPERTIES COMPILE_DEFINITIONS ORTHANC_STONE_SAMPLE=${Sample}) | 19 set_target_properties(${Target} PROPERTIES COMPILE_DEFINITIONS ORTHANC_STONE_SAMPLE=${Sample}) |
11 target_link_libraries(${Target} OrthancStone) | 20 target_link_libraries(${Target} OrthancStone) |
16 BuildSample(OrthancStoneSingleFrame 3) | 25 BuildSample(OrthancStoneSingleFrame 3) |
17 BuildSample(OrthancStoneSingleVolume 4) | 26 BuildSample(OrthancStoneSingleVolume 4) |
18 BuildSample(OrthancStoneBasicPetCtFusion 5) | 27 BuildSample(OrthancStoneBasicPetCtFusion 5) |
19 BuildSample(OrthancStoneSynchronizedSeries 6) | 28 BuildSample(OrthancStoneSynchronizedSeries 6) |
20 BuildSample(OrthancStoneLayoutPetCtFusion 7) | 29 BuildSample(OrthancStoneLayoutPetCtFusion 7) |
30 | |
31 | |
32 ##################################################################### | |
33 ## Generate the documentation if Doxygen is present | |
34 ##################################################################### | |
35 | |
36 find_package(Doxygen) | |
37 if (DOXYGEN_FOUND) | |
38 configure_file( | |
39 ${ORTHANC_STONE_DIR}/Resources/OrthancStone.doxygen | |
40 ${CMAKE_CURRENT_BINARY_DIR}/OrthancStone.doxygen | |
41 @ONLY) | |
42 | |
43 add_custom_target(doc | |
44 ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/OrthancStone.doxygen | |
45 COMMENT "Generating documentation with Doxygen" VERBATIM | |
46 ) | |
47 else() | |
48 message("Doxygen not found. The documentation will not be built.") | |
49 endif() |