Mercurial > hg > orthanc-stone
comparison OrthancStone/Resources/CMake/OrthancStoneConfiguration.cmake @ 1836:5a6adbc20ace
cleanup cmake
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 12 Jun 2021 13:43:42 +0200 |
parents | 126522623e20 |
children | 3889ae96d2e9 |
comparison
equal
deleted
inserted
replaced
1835:6c252e51008d | 1836:5a6adbc20ace |
---|---|
22 ##################################################################### | 22 ##################################################################### |
23 ## Configure the Orthanc Framework | 23 ## Configure the Orthanc Framework |
24 ##################################################################### | 24 ##################################################################### |
25 | 25 |
26 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") | 26 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") |
27 # DCMTK and curl are necessarily enabled if using Orthanc framework: | 27 # DCMTK, pugixml and curl are necessarily enabled if using the |
28 # "DownloadOrthancFramework.cmake" must be aware of this fact | 28 # system-wide Orthanc framework |
29 set(ENABLE_DCMTK ON) | 29 include(${CMAKE_CURRENT_LIST_DIR}/../Orthanc/CMake/DownloadOrthancFramework.cmake) |
30 | |
31 if (ORTHANC_FRAMEWORK_USE_SHARED) | |
32 include(FindBoost) | |
33 find_package(Boost COMPONENTS filesystem regex thread ${ORTHANC_BOOST_COMPONENTS}) | |
34 | |
35 if (NOT Boost_FOUND) | |
36 message(FATAL_ERROR "Unable to locate Boost on this system") | |
37 endif() | |
38 | |
39 include(FindDCMTK NO_MODULE) | |
40 link_libraries(${Boost_LIBRARIES} ${DCMTK_LIBRARIES} pugixml jsoncpp) | |
41 endif() | |
42 | |
43 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) | |
44 | |
45 add_definitions( | |
46 -DORTHANC_ENABLE_DCMTK=1 | |
47 -DORTHANC_ENABLE_PUGIXML=1 | |
48 ) | |
49 | |
50 set(ENABLE_DCMTK ON) | |
51 set(ENABLE_LOCALE ON) | |
52 set(ENABLE_PUGIXML ON) | |
30 set(ENABLE_WEB_CLIENT ON) | 53 set(ENABLE_WEB_CLIENT ON) |
31 | |
32 include(${CMAKE_CURRENT_LIST_DIR}/../Orthanc/CMake/DownloadOrthancFramework.cmake) | |
33 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) | |
34 | |
35 set(ENABLE_LOCALE ON) | |
36 | 54 |
37 else() | 55 else() |
38 if (ENABLE_DCMTK) | 56 if (ENABLE_DCMTK) |
39 set(ENABLE_LOCALE ON) | 57 set(ENABLE_LOCALE ON) |
40 else() | 58 else() |