Mercurial > hg > orthanc
comparison OrthancServer/Resources/Samples/Tools/CMakeLists.txt @ 4050:cd363608551a framework
fix paths
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 11 Jun 2020 11:44:48 +0200 |
parents | d25f4c0fa160 |
children | 28944db5318b |
comparison
equal
deleted
inserted
replaced
4049:47e9e788224c | 4050:cd363608551a |
---|---|
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) | 11 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/OrthancFrameworkParameters.cmake) |
12 | 12 |
13 set(ENABLE_ZLIB ON) | |
13 set(STATIC_BUILD ON) | 14 set(STATIC_BUILD ON) |
14 set(ALLOW_DOWNLOADS ON) | 15 set(ALLOW_DOWNLOADS ON) |
15 | 16 |
16 include(${CMAKE_SOURCE_DIR}/../../CMake/OrthancFrameworkConfiguration.cmake) | 17 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/OrthancFrameworkConfiguration.cmake) |
17 | |
18 add_library(CommonLibraries | |
19 ${BOOST_SOURCES} | |
20 ${JSONCPP_SOURCES} | |
21 ${ORTHANC_ROOT}/Core/Enumerations.cpp | |
22 ${ORTHANC_ROOT}/Core/Logging.cpp | |
23 ${ORTHANC_ROOT}/Core/SystemToolbox.cpp | |
24 ${ORTHANC_ROOT}/Core/Toolbox.cpp | |
25 ${ORTHANC_ROOT}/Resources/ThirdParty/md5/md5.c | |
26 ${ORTHANC_ROOT}/Resources/ThirdParty/base64/base64.cpp | |
27 ) | |
28 | 18 |
29 add_executable(RecoverCompressedFile | 19 add_executable(RecoverCompressedFile |
30 RecoverCompressedFile.cpp | 20 RecoverCompressedFile.cpp |
31 ${ORTHANC_ROOT}/Core/Compression/DeflateBaseCompressor.cpp | 21 |
32 ${ORTHANC_ROOT}/Core/Compression/ZlibCompressor.cpp | 22 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/ThirdParty/base64/base64.cpp |
23 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/ThirdParty/md5/md5.c | |
24 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Compression/DeflateBaseCompressor.cpp | |
25 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Compression/ZlibCompressor.cpp | |
26 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Enumerations.cpp | |
27 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Logging.cpp | |
28 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/SystemToolbox.cpp | |
29 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Toolbox.cpp | |
30 | |
31 ${BOOST_SOURCES} | |
32 ${JSONCPP_SOURCES} | |
33 ${UUID_SOURCES} | |
33 ${ZLIB_SOURCES} | 34 ${ZLIB_SOURCES} |
34 ) | 35 ) |
35 | |
36 target_link_libraries(RecoverCompressedFile CommonLibraries) |