changeset 68:45da32410346

USE_SYSTEM_ORTHANC_SDK option
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Aug 2015 21:20:42 +0200
parents 902dedf9882a
children fe8dab5c051f
files CMakeLists.txt
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)