Mercurial > hg > orthanc
comparison Resources/DcmtkTools/CMakeLists.txt @ 3952:4f09a6a2b369 c-get
LSB compilation of getscu command-line tool from DCMTK for integration tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 May 2020 08:41:54 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3927:ed5515cd3262 | 3952:4f09a6a2b369 |
---|---|
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) |