Mercurial > hg > orthanc-stone
view Samples/Qt/CMakeLists.txt @ 936:775ebd43bd3b
Added tag toa2019072901 for changeset 401808e7ff2e
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 29 Jul 2019 15:39:45 +0200 |
parents | a911f5bb48da |
children |
line wrap: on
line source
cmake_minimum_required(VERSION 2.8.3) ##################################################################### ## Configuration of the Orthanc framework ##################################################################### # This CMake file defines the "ORTHANC_STONE_VERSION" macro, so it # must be the first inclusion include(${CMAKE_SOURCE_DIR}/../../Resources/CMake/Version.cmake) if (ORTHANC_STONE_VERSION STREQUAL "mainline") set(ORTHANC_FRAMEWORK_VERSION "mainline") set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") else() set(ORTHANC_FRAMEWORK_VERSION "1.5.7") set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") endif() set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc source code (can be \"hg\", \"archive\", \"web\" or \"path\")") set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") ##################################################################### ## Configuration of the Stone framework ##################################################################### include(${CMAKE_SOURCE_DIR}/../../Resources/CMake/OrthancStoneParameters.cmake) include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) DownloadPackage( "a24b8136b8f3bb93f166baf97d9328de" "http://orthanc.osimis.io/ThirdPartyDownloads/ubuntu-font-family-0.83.zip" "${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83") set(ORTHANC_STONE_APPLICATION_RESOURCES UBUNTU_FONT ${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83/Ubuntu-R.ttf ) SET(ENABLE_GOOGLE_TEST OFF) SET(ENABLE_LOCALE ON) SET(ENABLE_QT ON) SET(ENABLE_SDL OFF) SET(ENABLE_WEB_CLIENT ON) SET(ORTHANC_SANDBOXED OFF) LIST(APPEND ORTHANC_BOOST_COMPONENTS program_options) include(${CMAKE_SOURCE_DIR}/../../Resources/CMake/OrthancStoneConfiguration.cmake) add_definitions( -DORTHANC_ENABLE_LOGGING_PLUGIN=0 ) ##################################################################### ## Build the samples ##################################################################### add_library(OrthancStone STATIC ${ORTHANC_STONE_SOURCES} ) list(APPEND BASIC_SCENE_APPLICATIONS_SOURCES BasicSceneWindow.cpp ) ORTHANC_QT_WRAP_UI(BASIC_SCENE_APPLICATIONS_SOURCES BasicSceneWindow.ui ) ORTHANC_QT_WRAP_CPP(BASIC_SCENE_APPLICATIONS_SOURCES BasicSceneWindow.h QStoneOpenGlWidget.h ) add_executable(MpBasicScene ${CMAKE_CURRENT_LIST_DIR}/../MultiPlatform/BasicScene/BasicScene.h ${CMAKE_CURRENT_LIST_DIR}/../MultiPlatform/BasicScene/BasicScene.cpp ${CMAKE_CURRENT_LIST_DIR}/../MultiPlatform/BasicScene/mainQt.cpp QStoneOpenGlWidget.cpp ${BASIC_SCENE_APPLICATIONS_SOURCES} ) target_include_directories(MpBasicScene PUBLIC ${CMAKE_SOURCE_DIR} ${ORTHANC_STONE_ROOT}) target_link_libraries(MpBasicScene OrthancStone)