Mercurial > hg > orthanc
comparison CMakeLists.txt @ 1337:afaa55d42ddd
FreeBSD support
author | jodogne |
---|---|
date | Tue, 31 Mar 2015 11:40:29 +0200 |
parents | 5a92665dee23 |
children | a87d3288bd39 |
comparison
equal
deleted
inserted
replaced
1336:a80e811ec619 | 1337:afaa55d42ddd |
---|---|
343 | 343 |
344 add_executable(Orthanc | 344 add_executable(Orthanc |
345 OrthancServer/main.cpp | 345 OrthancServer/main.cpp |
346 ) | 346 ) |
347 | 347 |
348 target_link_libraries(Orthanc ServerLibrary CoreLibrary ${STATIC_LUA} ${STATIC_GOOGLE_LOG}) | 348 target_link_libraries(Orthanc ServerLibrary CoreLibrary ${STATIC_LUA} ${STATIC_GOOGLE_LOG} ${DCMTK_LIBRARIES}) |
349 | 349 |
350 if (${OPENSSL_SOURCES_LENGTH} GREATER 0) | 350 if (${OPENSSL_SOURCES_LENGTH} GREATER 0) |
351 target_link_libraries(Orthanc OpenSSL) | 351 target_link_libraries(Orthanc OpenSSL) |
352 endif() | 352 endif() |
353 | 353 |
372 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake) | 372 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake) |
373 add_executable(UnitTests | 373 add_executable(UnitTests |
374 ${GTEST_SOURCES} | 374 ${GTEST_SOURCES} |
375 ${ORTHANC_UNIT_TESTS_SOURCES} | 375 ${ORTHANC_UNIT_TESTS_SOURCES} |
376 ) | 376 ) |
377 target_link_libraries(UnitTests ServerLibrary CoreLibrary ${STATIC_LUA} ${STATIC_GOOGLE_LOG}) | 377 target_link_libraries(UnitTests ServerLibrary CoreLibrary ${STATIC_LUA} ${STATIC_GOOGLE_LOG} ${DCMTK_LIBRARIES}) |
378 | 378 |
379 if (${OPENSSL_SOURCES_LENGTH} GREATER 0) | 379 if (${OPENSSL_SOURCES_LENGTH} GREATER 0) |
380 target_link_libraries(UnitTests OpenSSL) | 380 target_link_libraries(UnitTests OpenSSL) |
381 endif() | 381 endif() |
382 | 382 |
429 ${CURL_SOURCES} | 429 ${CURL_SOURCES} |
430 ${GOOGLE_LOG_SOURCES} | 430 ${GOOGLE_LOG_SOURCES} |
431 ) | 431 ) |
432 | 432 |
433 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR | 433 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR |
434 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD") | 434 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR |
435 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") | |
435 set_target_properties(OrthancClient | 436 set_target_properties(OrthancClient |
436 PROPERTIES LINK_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--as-needed -Wl,--version-script=${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/Laaw/VersionScript.map" | 437 PROPERTIES LINK_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--as-needed -Wl,--version-script=${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/Laaw/VersionScript.map" |
437 ) | 438 ) |
438 target_link_libraries(OrthancClient pthread) | 439 target_link_libraries(OrthancClient pthread) |
439 | 440 |