comparison Platforms/Generic/CMakeLists.txt @ 114:3541fc81331a wasm

starting WebAssembly
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 20 Sep 2017 16:11:52 +0200
parents CMakeLists.txt@2eca030792aa
children f598ffb81cda
comparison
equal deleted inserted replaced
113:2eca030792aa 114:3541fc81331a
1 cmake_minimum_required(VERSION 2.8)
2 project(OrthancStone)
3
4
5 #####################################################################
6 ## Build a static library containing the Orthanc Stone framework
7 #####################################################################
8
9 SET(STONE_SANDBOXED OFF)
10 include(../../Resources/CMake/OrthancStone.cmake)
11 add_library(OrthancStone STATIC ${ORTHANC_STONE_SOURCES})
12
13
14 #####################################################################
15 ## Build all the sample applications
16 #####################################################################
17
18 macro(BuildSample Target Sample)
19 add_executable(${Target}
20 ${ORTHANC_STONE_DIR}/Applications/Samples/SampleMainSdl.cpp
21 ${APPLICATIONS_SOURCES}
22 )
23 set_target_properties(${Target} PROPERTIES COMPILE_DEFINITIONS ORTHANC_STONE_SAMPLE=${Sample})
24 target_link_libraries(${Target} OrthancStone)
25 endmacro()
26
27 # TODO - Re-enable this stuff!
28
29 #BuildSample(OrthancStoneEmpty 1)
30 #BuildSample(OrthancStoneTestPattern 2)
31 #BuildSample(OrthancStoneSingleFrame 3)
32 #BuildSample(OrthancStoneSingleVolume 4)
33 #BuildSample(OrthancStoneBasicPetCtFusion 5)
34 #BuildSample(OrthancStoneSynchronizedSeries 6)
35 #BuildSample(OrthancStoneLayoutPetCtFusion 7)
36
37
38 #####################################################################
39 ## Build the unit tests
40 #####################################################################
41
42 add_executable(UnitTests
43 ${GOOGLE_TEST_SOURCES}
44 ${ORTHANC_STONE_DIR}/UnitTestsSources/UnitTestsMain.cpp
45 )
46
47 target_link_libraries(UnitTests OrthancStone)
48
49
50 #####################################################################
51 ## Generate the documentation if Doxygen is present
52 #####################################################################
53
54 find_package(Doxygen)
55 if (DOXYGEN_FOUND)
56 configure_file(
57 ${ORTHANC_STONE_DIR}/Resources/OrthancStone.doxygen
58 ${CMAKE_CURRENT_BINARY_DIR}/OrthancStone.doxygen
59 @ONLY)
60
61 add_custom_target(doc
62 ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/OrthancStone.doxygen
63 COMMENT "Generating documentation with Doxygen" VERBATIM
64 )
65 else()
66 message("Doxygen not found. The documentation will not be built.")
67 endif()