diff CMakeLists.txt @ 74:5217f6f8a8cf

improved CMakeLists.txt
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Jun 2021 09:09:04 +0200
parents da73be4b361b
children 2b9d82366e3a
line wrap: on
line diff
--- a/CMakeLists.txt	Sat Jun 12 08:00:57 2021 +0200
+++ b/CMakeLists.txt	Wed Jun 23 09:09:04 2021 +0200
@@ -43,8 +43,6 @@
 # Download and setup the Orthanc framework
 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
 
-include_directories(${ORTHANC_FRAMEWORK_ROOT})
-
 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
   include(FindBoost)
   find_package(Boost COMPONENTS filesystem regex thread)
@@ -63,6 +61,7 @@
   #set(ENABLE_MODULE_DICOM OFF CACHE INTERNAL "")
   
   include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkConfiguration.cmake)
+  include_directories(${ORTHANC_FRAMEWORK_ROOT})
 endif()