Mercurial > hg > orthanc
comparison Resources/CMake/DcmtkConfiguration.cmake @ 1337:afaa55d42ddd
FreeBSD support
author | jodogne |
---|---|
date | Tue, 31 Mar 2015 11:40:29 +0200 |
parents | 7f0aa3c0f659 |
children | 94ffb597d297 |
comparison
equal
deleted
inserted
replaced
1336:a80e811ec619 | 1337:afaa55d42ddd |
---|---|
91 | 91 |
92 # Source for the logging facility of DCMTK | 92 # Source for the logging facility of DCMTK |
93 AUX_SOURCE_DIRECTORY(${DCMTK_SOURCES_DIR}/oflog/libsrc DCMTK_SOURCES) | 93 AUX_SOURCE_DIRECTORY(${DCMTK_SOURCES_DIR}/oflog/libsrc DCMTK_SOURCES) |
94 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR | 94 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR |
95 ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR | 95 ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR |
96 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR | |
96 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD") | 97 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD") |
97 list(REMOVE_ITEM DCMTK_SOURCES | 98 list(REMOVE_ITEM DCMTK_SOURCES |
98 ${DCMTK_SOURCES_DIR}/oflog/libsrc/windebap.cc | 99 ${DCMTK_SOURCES_DIR}/oflog/libsrc/windebap.cc |
99 ${DCMTK_SOURCES_DIR}/oflog/libsrc/winsock.cc | 100 ${DCMTK_SOURCES_DIR}/oflog/libsrc/winsock.cc |
100 ) | 101 ) |
161 set(tmp "${DCMTK_LIBRARIES}") | 162 set(tmp "${DCMTK_LIBRARIES}") |
162 include(FindDCMTK) | 163 include(FindDCMTK) |
163 list(APPEND DCMTK_LIBRARIES "${tmp}") | 164 list(APPEND DCMTK_LIBRARIES "${tmp}") |
164 | 165 |
165 include_directories(${DCMTK_INCLUDE_DIR}) | 166 include_directories(${DCMTK_INCLUDE_DIR}) |
166 link_libraries(${DCMTK_LIBRARIES}) | |
167 | 167 |
168 add_definitions( | 168 add_definitions( |
169 -DHAVE_CONFIG_H=1 | 169 -DHAVE_CONFIG_H=1 |
170 ) | 170 ) |
171 | 171 |