comparison OrthancFramework/Resources/DcmtkTools/CMakeLists.txt @ 4044:d25f4c0fa160 framework

splitting code into OrthancFramework and OrthancServer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jun 2020 20:30:34 +0200
parents Resources/DcmtkTools/CMakeLists.txt@4f09a6a2b369
children 47e9e788224c
comparison
equal deleted inserted replaced
4043:6c6239aec462 4044:d25f4c0fa160
1 # $ LSB_CC=gcc-4.8 LSB_CXX=g++-4.8 cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../../Resources/LinuxStandardBaseToolchain.cmake -G Ninja
2
3 cmake_minimum_required(VERSION 2.8)
4
5 project(DcmtkTools)
6
7 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../)
8 include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake)
9 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake)
10
11 set(STATIC_BUILD ON CACHE BOOL "")
12 set(ALLOW_DOWNLOADS ON CACHE BOOL "")
13
14 set(DCMTK_STATIC_VERSION "3.6.5" CACHE STRING "")
15 set(ENABLE_DCMTK_JPEG ON CACHE BOOL "")
16 set(ENABLE_DCMTK_JPEG_LOSSLESS ON CACHE BOOL "")
17 set(ENABLE_DCMTK_LOG ON CACHE BOOL "")
18 set(ENABLE_DCMTK_NETWORKING ON CACHE BOOL "")
19 set(ENABLE_DCMTK_TRANSCODING ON CACHE BOOL "")
20
21 include(${ORTHANC_ROOT}/Resources/CMake/DcmtkConfiguration.cmake)
22
23 add_library(dcmtk STATIC
24 ${CMAKE_SOURCE_DIR}/dummy.cpp
25 ${DCMTK_SOURCES}
26 )
27
28 add_executable(getscu
29 ${DCMTK_SOURCES_DIR}/dcmnet/apps/getscu.cc
30 )
31 target_link_libraries(getscu dcmtk)