Mercurial > hg > orthanc-wsi
comparison ViewerPlugin/CMakeLists.txt @ 141:c9271bb5ef94
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 17 Apr 2018 20:04:56 +0200 |
parents | a0f9a3df1110 |
children | faabdb7f2003 |
comparison
equal
deleted
inserted
replaced
140:a0f9a3df1110 | 141:c9271bb5ef94 |
---|---|
37 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) | 37 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) |
38 set(ENABLE_ZLIB ON) | 38 set(ENABLE_ZLIB ON) |
39 set(ENABLE_PNG ON) | 39 set(ENABLE_PNG ON) |
40 set(ENABLE_JPEG ON) | 40 set(ENABLE_JPEG ON) |
41 | 41 |
42 include(${ORTHANC_ROOT}/Resources/CMake/VisualStudioPrecompiledHeaders.cmake) | |
42 include(${ORTHANC_ROOT}/Resources/CMake/OrthancFrameworkConfiguration.cmake) | 43 include(${ORTHANC_ROOT}/Resources/CMake/OrthancFrameworkConfiguration.cmake) |
43 include_directories(${ORTHANC_ROOT}) | 44 include_directories(${ORTHANC_ROOT}) |
44 | 45 |
45 # Include components specific to WSI | 46 # Include components specific to WSI |
46 include(${ORTHANC_WSI_DIR}/Resources/CMake/Version.cmake) | 47 include(${ORTHANC_WSI_DIR}/Resources/CMake/Version.cmake) |
62 | 63 |
63 | 64 |
64 ##################################################################### | 65 ##################################################################### |
65 ## Platform-specific configuration | 66 ## Platform-specific configuration |
66 ##################################################################### | 67 ##################################################################### |
68 | |
69 add_definitions( | |
70 -DHAS_ORTHANC_EXCEPTION=1 | |
71 ) | |
67 | 72 |
68 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR | 73 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR |
69 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR | 74 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR |
70 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") | 75 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") |
71 link_libraries(rt) | 76 link_libraries(rt) |