Mercurial > hg > orthanc
comparison OrthancFramework/SharedLibrary/CMakeLists.txt @ 4103:c5efe8897da8
rename ORTHANC_INSTALL_DIR as ORTHANC_INSTALL_PREFIX for more consistency with CMake
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jul 2020 10:59:11 +0200 |
parents | 90eaf36e6adf |
children | d36b38da5947 |
comparison
equal
deleted
inserted
replaced
4102:2ace6dc9b1d7 | 4103:c5efe8897da8 |
---|---|
18 ##################################################################### | 18 ##################################################################### |
19 | 19 |
20 # *Do not* use CMAKE_INSTALL_PREFIX, otherwise CMake automatically | 20 # *Do not* use CMAKE_INSTALL_PREFIX, otherwise CMake automatically |
21 # adds CMAKE_INSTALL_PREFIX to the include_directories(), which causes | 21 # adds CMAKE_INSTALL_PREFIX to the include_directories(), which causes |
22 # issues if re-building the shared library after install! | 22 # issues if re-building the shared library after install! |
23 set(ORTHANC_INSTALL_DIR "/tmp/install" CACHE PATH "") | 23 set(ORTHANC_INSTALL_PREFIX "/tmp/install" CACHE PATH "") |
24 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests") | 24 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests") |
25 | 25 |
26 | 26 |
27 | 27 |
28 ##################################################################### | 28 ##################################################################### |
429 ## Possibly install the headers and the binaries | 429 ## Possibly install the headers and the binaries |
430 ##################################################################### | 430 ##################################################################### |
431 | 431 |
432 install( | 432 install( |
433 TARGETS OrthancFramework | 433 TARGETS OrthancFramework |
434 RUNTIME DESTINATION ${ORTHANC_INSTALL_DIR}/lib # Destination for Windows | 434 RUNTIME DESTINATION ${ORTHANC_INSTALL_PREFIX}/lib # Destination for Windows |
435 LIBRARY DESTINATION ${ORTHANC_INSTALL_DIR}/lib # Destination for Linux | 435 LIBRARY DESTINATION ${ORTHANC_INSTALL_PREFIX}/lib # Destination for Linux |
436 ) | 436 ) |
437 | 437 |
438 if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") | 438 if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") |
439 install(FILES | 439 install(FILES |
440 ${CMAKE_CURRENT_BINARY_DIR}/OrthancFramework.wasm | 440 ${CMAKE_CURRENT_BINARY_DIR}/OrthancFramework.wasm |
441 DESTINATION ${ORTHANC_INSTALL_DIR}/lib | 441 DESTINATION ${ORTHANC_INSTALL_PREFIX}/lib |
442 ) | 442 ) |
443 endif() | 443 endif() |
444 | 444 |
445 install( | 445 install( |
446 DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Include/ | 446 DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Include/ |
447 DESTINATION ${ORTHANC_INSTALL_DIR}/include/ | 447 DESTINATION ${ORTHANC_INSTALL_PREFIX}/include/ |
448 ) | 448 ) |
449 | 449 |
450 | 450 |
451 | 451 |
452 ##################################################################### | 452 ##################################################################### |