481
|
1 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake)
|
|
2 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake)
|
|
3 include(${ORTHANC_ROOT}/Resources/CMake/LibCurlConfiguration.cmake)
|
|
4 include(${ORTHANC_ROOT}/Resources/CMake/LibPngConfiguration.cmake)
|
|
5 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake)
|
|
6
|
|
7 if (${CMAKE_COMPILER_IS_GNUCXX})
|
|
8 set(CMAKE_C_FLAGS "-Wall -pedantic -Wno-implicit-function-declaration") # --std=c99 makes libcurl not to compile
|
|
9 set(CMAKE_CXX_FLAGS "-Wall -pedantic -Wno-long-long -Wno-variadic-macros")
|
|
10 set(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
|
|
11 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
|
|
12 elseif (${MSVC})
|
|
13 add_definitions(-D_CRT_SECURE_NO_WARNINGS=1)
|
|
14 endif()
|
|
15
|
|
16 set(ORTHANC_CPP_CLIENT_SOURCES
|
|
17 ${THIRD_PARTY_SOURCES}
|
|
18 ${ORTHANC_ROOT}/Core/OrthancException.cpp
|
|
19 ${ORTHANC_ROOT}/Core/Enumerations.cpp
|
|
20 ${ORTHANC_ROOT}/Core/Toolbox.cpp
|
|
21 ${ORTHANC_ROOT}/Core/HttpClient.cpp
|
|
22 ${ORTHANC_ROOT}/Core/MultiThreading/ArrayFilledByThreads.cpp
|
|
23 ${ORTHANC_ROOT}/Core/MultiThreading/ThreadedCommandProcessor.cpp
|
|
24 ${ORTHANC_ROOT}/Core/MultiThreading/SharedMessageQueue.cpp
|
|
25 ${ORTHANC_ROOT}/Core/FileFormats/PngReader.cpp
|
|
26 ${ORTHANC_ROOT}/OrthancCppClient/OrthancConnection.cpp
|
|
27 ${ORTHANC_ROOT}/OrthancCppClient/Series.cpp
|
|
28 ${ORTHANC_ROOT}/OrthancCppClient/Study.cpp
|
|
29 ${ORTHANC_ROOT}/OrthancCppClient/Instance.cpp
|
|
30 ${ORTHANC_ROOT}/OrthancCppClient/Patient.cpp
|
|
31 ${ORTHANC_ROOT}/Resources/sha1/sha1.cpp
|
|
32 ${ORTHANC_ROOT}/Resources/md5/md5.c
|
|
33 ${ORTHANC_ROOT}/Resources/base64/base64.cpp
|
|
34 )
|