diff Resources/CMake/OrthancStoneConfiguration.cmake @ 1410:b2b0fc4a5596

Added ENABLE_GUIADAPTER option + fixed include paths in GuiAdapter
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 04 May 2020 13:34:21 +0200
parents 5630c2fb7b0f
children 30deba7bc8e2
line wrap: on
line diff
--- a/Resources/CMake/OrthancStoneConfiguration.cmake	Thu Apr 30 00:25:55 2020 +0200
+++ b/Resources/CMake/OrthancStoneConfiguration.cmake	Mon May 04 13:34:21 2020 +0200
@@ -287,6 +287,15 @@
     )
 endif()
 
+if ( (ENABLE_SDL OR ENABLE_WASM) AND ENABLE_GUIADAPTER )
+  list(APPEND APPLICATIONS_SOURCES
+    ${ORTHANC_STONE_ROOT}/Deprecated/Applications/Generic/GuiAdapter.cpp
+    ${ORTHANC_STONE_ROOT}/Deprecated/Applications/Generic/GuiAdapter.h
+    )
+    include_directories(${ORTHANC_STONE_ROOT}/Deprecated)
+endif()
+
+
 list(APPEND ORTHANC_STONE_SOURCES
 
   ${ORTHANC_ROOT}/Plugins/Samples/Common/DicomDatasetReader.cpp
@@ -595,7 +604,6 @@
   endif()
 endif()
 
-
 ##
 ## TEST - Automatically add all ".h" headers to the list of sources
 ##