comparison OrthancServer/Resources/Samples/Tools/CMakeLists.txt @ 4044:d25f4c0fa160 framework

splitting code into OrthancFramework and OrthancServer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jun 2020 20:30:34 +0200
parents Resources/Samples/Tools/CMakeLists.txt@50cde8246542
children cd363608551a
comparison
equal deleted inserted replaced
4043:6c6239aec462 4044:d25f4c0fa160
1 cmake_minimum_required(VERSION 2.8)
2
3 project(OrthancTools)
4
5 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
6 # Linking with "pthread" is necessary, otherwise the software crashes
7 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17
8 link_libraries(pthread dl)
9 endif()
10
11 include(${CMAKE_SOURCE_DIR}/../../CMake/OrthancFrameworkParameters.cmake)
12
13 set(STATIC_BUILD ON)
14 set(ALLOW_DOWNLOADS ON)
15
16 include(${CMAKE_SOURCE_DIR}/../../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
29 add_executable(RecoverCompressedFile
30 RecoverCompressedFile.cpp
31 ${ORTHANC_ROOT}/Core/Compression/DeflateBaseCompressor.cpp
32 ${ORTHANC_ROOT}/Core/Compression/ZlibCompressor.cpp
33 ${ZLIB_SOURCES}
34 )
35
36 target_link_libraries(RecoverCompressedFile CommonLibraries)