Mercurial > hg > orthanc-stone
comparison Resources/CMake/OrthancStoneConfiguration.cmake @ 1509:b7210c688ca7
linking SDL samples against system-wide orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Jul 2020 09:14:35 +0200 |
parents | d8af188ab545 |
children |
comparison
equal
deleted
inserted
replaced
1508:dd1d1cc0575d | 1509:b7210c688ca7 |
---|---|
20 | 20 |
21 ##################################################################### | 21 ##################################################################### |
22 ## Configure the Orthanc Framework | 22 ## Configure the Orthanc Framework |
23 ##################################################################### | 23 ##################################################################### |
24 | 24 |
25 if (ENABLE_DCMTK) | 25 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") |
26 set(ENABLE_LOCALE ON) | 26 include(${CMAKE_CURRENT_LIST_DIR}/../Orthanc/CMake/DownloadOrthancFramework.cmake) |
27 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) | |
28 | |
27 else() | 29 else() |
28 if (NOT DEFINED ENABLE_LOCALE) | 30 if (ENABLE_DCMTK) |
29 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) | 31 set(ENABLE_LOCALE ON) |
30 endif() | 32 else() |
31 endif() | 33 if (NOT DEFINED ENABLE_LOCALE) |
32 | 34 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) |
33 include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/OrthancFrameworkConfiguration.cmake) | 35 endif() |
34 include_directories( | 36 endif() |
35 ${ORTHANC_FRAMEWORK_ROOT}/Sources/ | 37 |
36 ) | 38 include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/OrthancFrameworkConfiguration.cmake) |
39 include_directories( | |
40 ${ORTHANC_FRAMEWORK_ROOT}/Sources/ | |
41 ) | |
42 endif() | |
37 | 43 |
38 | 44 |
39 ##################################################################### | 45 ##################################################################### |
40 ## Sanity check of the configuration | 46 ## Sanity check of the configuration |
41 ##################################################################### | 47 ##################################################################### |