Mercurial > hg > orthanc-stone
diff Samples/Sdl/SimpleViewer/CMakeLists.txt @ 1358:4287eaabe490 broker
Sdl simple viewer application
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 15 Apr 2020 15:23:30 +0200 |
parents | |
children | dd50d0852ae2 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Samples/Sdl/SimpleViewer/CMakeLists.txt Wed Apr 15 15:23:30 2020 +0200 @@ -0,0 +1,42 @@ +cmake_minimum_required(VERSION 2.8.3) + +project(SdlViewer) + +set(ALLOW_DOWNLOADS ON) + +set(STONE_ROOT ${CMAKE_CURRENT_LIST_DIR}/../../../) + +set(STATIC_BUILD ON) +set(MSVC_MULTIPLE_PROCESSES ON) + +set(ORTHANC_FRAMEWORK_SOURCE "path") +set(ORTHANC_FRAMEWORK_ROOT ${CMAKE_CURRENT_LIST_DIR}/../../../../orthanc) +include(${STONE_ROOT}/Resources/CMake/OrthancStoneParameters.cmake) + +SET(ENABLE_GOOGLE_TEST OFF) +SET(ENABLE_LOCALE ON) # Necessary for text rendering +SET(ENABLE_QT OFF) +SET(ENABLE_SDL ON) +SET(ENABLE_DCMTK ON) # <== +SET(ENABLE_OPENGL ON) # <== +SET(ENABLE_WEB_CLIENT ON) +SET(ORTHANC_SANDBOXED OFF) + +include(${STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake) + +include_directories(${STONE_ROOT}) + +add_definitions( + -DORTHANC_ENABLE_LOGGING=1 + -DORTHANC_ENABLE_LOGGING_PLUGIN=0 + -DORTHANC_ENABLE_PUGIXML=0 + -DORTHANC_DEFAULT_DICOM_ENCODING=Encoding_Latin1 + ) + +add_executable(OrthancStone + SdlSimpleViewerApplication.h + SimpleViewer.cpp + ${ORTHANC_STONE_SOURCES} + ) + +target_link_libraries(OrthancStone ${DCMTK_LIBRARIES})