# HG changeset patch # User Sebastien Jodogne # Date 1438975242 -7200 # Node ID 45da3241034686fcb7bac965c9986869288d9005 # Parent 902dedf9882a5d48112f23f4ef9e92df0b590aca USE_SYSTEM_ORTHANC_SDK option diff -r 902dedf9882a -r 45da32410346 CMakeLists.txt --- a/CMakeLists.txt Sun Aug 02 12:42:18 2015 +0200 +++ b/CMakeLists.txt Fri Aug 07 21:20:42 2015 +0200 @@ -36,6 +36,7 @@ set(USE_SYSTEM_LIBPNG ON CACHE BOOL "Use the system version of libpng") set(USE_SYSTEM_ZLIB ON CACHE BOOL "Use the system version of zlib") set(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite") +set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") # Distribution-specific settings set(USE_GTEST_DEBIAN_SOURCE_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") @@ -63,7 +64,7 @@ # Check that the Orthanc SDK headers are available or download them -if (STATIC_BUILD) +if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) include_directories(${ORTHANC_ROOT}/Sdk-0.9.1) else () CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H)