Mercurial > hg > orthanc
diff OrthancServer/Plugins/Samples/Common/OrthancPlugins.cmake @ 4050:cd363608551a framework
fix paths
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 11 Jun 2020 11:44:48 +0200 |
parents | d25f4c0fa160 |
children | bf1a17f12306 |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/Common/OrthancPlugins.cmake Thu Jun 11 10:05:26 2020 +0200 +++ b/OrthancServer/Plugins/Samples/Common/OrthancPlugins.cmake Thu Jun 11 11:44:48 2020 +0200 @@ -1,11 +1,10 @@ -set(ORTHANC_ROOT ${SAMPLES_ROOT}/../..) include(CheckIncludeFiles) include(CheckIncludeFileCXX) include(CheckLibraryExists) include(FindPythonInterp) -include(${ORTHANC_ROOT}/Resources/CMake/AutoGeneratedCode.cmake) -include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) -include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../../../../OrthancFramework/Resources/CMake/AutoGeneratedCode.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../../../../OrthancFramework/Resources/CMake/DownloadPackage.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../../../../OrthancFramework/Resources/CMake/Compiler.cmake) if (CMAKE_COMPILER_IS_GNUCXX) @@ -20,7 +19,7 @@ link_libraries(dl rt pthread) endif() -include_directories(${SAMPLES_ROOT}/../Include/) +include_directories(${CMAKE_CURRENT_LIST_DIR}/../../Include/) if (MSVC) if (MSVC_VERSION LESS 1600) @@ -30,8 +29,11 @@ # compatibility header. # http://stackoverflow.com/a/70630/881731 # https://en.wikibooks.org/wiki/C_Programming/C_Reference/stdint.h#External_links - include_directories(${SAMPLES_ROOT}/../../Resources/ThirdParty/VisualStudio/) + include_directories(${CMAKE_CURRENT_LIST_DIR}/../../../../OrthancFramework/Resources/ThirdParty/VisualStudio/) endif() endif() -add_definitions(-DHAS_ORTHANC_EXCEPTION=0) +add_definitions( + -DHAS_ORTHANC_EXCEPTION=0 + -DORTHANC_BUILDING_FRAMEWORK_LIBRARY=0 + )