Mercurial > hg > orthanc
comparison Resources/Samples/Tools/CMakeLists.txt @ 2388:50cde8246542
CMake to build the Orthanc framework without the Orthanc server
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Aug 2017 11:26:08 +0200 |
parents | 8466aa60544a |
children |
comparison
equal
deleted
inserted
replaced
2387:a60a79929007 | 2388:50cde8246542 |
---|---|
6 # Linking with "pthread" is necessary, otherwise the software crashes | 6 # Linking with "pthread" is necessary, otherwise the software crashes |
7 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17 | 7 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17 |
8 link_libraries(pthread dl) | 8 link_libraries(pthread dl) |
9 endif() | 9 endif() |
10 | 10 |
11 include(${CMAKE_SOURCE_DIR}/../../CMake/OrthancFrameworkParameters.cmake) | |
12 | |
11 set(STATIC_BUILD ON) | 13 set(STATIC_BUILD ON) |
12 set(ALLOW_DOWNLOADS ON) | 14 set(ALLOW_DOWNLOADS ON) |
13 | 15 |
14 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../..) | 16 include(${CMAKE_SOURCE_DIR}/../../CMake/OrthancFrameworkConfiguration.cmake) |
15 | |
16 include(CheckIncludeFiles) | |
17 include(CheckIncludeFileCXX) | |
18 include(CheckLibraryExists) | |
19 include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake) | |
20 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) | |
21 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake) | |
22 include(${ORTHANC_ROOT}/Resources/CMake/ZlibConfiguration.cmake) | |
23 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) | |
24 | |
25 add_definitions( | |
26 -DORTHANC_ENABLE_BASE64=0 | |
27 -DORTHANC_ENABLE_MD5=0 | |
28 -DORTHANC_ENABLE_PUGIXML=0 | |
29 -DORTHANC_ENABLE_LOGGING=0 | |
30 -DORTHANC_SANDBOXED=0 | |
31 ) | |
32 | 17 |
33 add_library(CommonLibraries | 18 add_library(CommonLibraries |
34 ${BOOST_SOURCES} | 19 ${BOOST_SOURCES} |
35 ${JSONCPP_SOURCES} | 20 ${JSONCPP_SOURCES} |
36 ${ORTHANC_ROOT}/Core/Enumerations.cpp | 21 ${ORTHANC_ROOT}/Core/Enumerations.cpp |
22 ${ORTHANC_ROOT}/Core/Logging.cpp | |
37 ${ORTHANC_ROOT}/Core/SystemToolbox.cpp | 23 ${ORTHANC_ROOT}/Core/SystemToolbox.cpp |
38 ${ORTHANC_ROOT}/Core/Toolbox.cpp | 24 ${ORTHANC_ROOT}/Core/Toolbox.cpp |
39 ${ORTHANC_ROOT}/Resources/ThirdParty/md5/md5.c | 25 ${ORTHANC_ROOT}/Resources/ThirdParty/md5/md5.c |
40 ${ORTHANC_ROOT}/Resources/ThirdParty/base64/base64.cpp | 26 ${ORTHANC_ROOT}/Resources/ThirdParty/base64/base64.cpp |
41 ) | 27 ) |