Mercurial > hg > orthanc
view Resources/Samples/Tools/CMakeLists.txt @ 1250:2ffe07abd9d8
removal of const on IStorageArea::Read()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 05 Jan 2015 11:14:58 +0100 |
parents | 571583642ce2 |
children | 272cb2019a4c |
line wrap: on
line source
cmake_minimum_required(VERSION 2.8) project(OrthancTools) if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") # Linking with "pthread" is necessary, otherwise the software crashes # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17 link_libraries(pthread dl) endif() set(STATIC_BUILD ON) set(ALLOW_DOWNLOADS ON) set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../..) include(CheckIncludeFiles) include(CheckIncludeFileCXX) include(CheckLibraryExists) include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake) include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake) include(${ORTHANC_ROOT}/Resources/CMake/ZlibConfiguration.cmake) add_library(CommonLibraries ${BOOST_SOURCES} ${THIRD_PARTY_SOURCES} ${ORTHANC_ROOT}/Core/OrthancException.cpp ${ORTHANC_ROOT}/Core/Toolbox.cpp ${ORTHANC_ROOT}/Core/Uuid.cpp ${ORTHANC_ROOT}/Resources/md5/md5.c ${ORTHANC_ROOT}/Resources/base64/base64.cpp ) add_executable(RecoverCompressedFile RecoverCompressedFile.cpp ${ORTHANC_ROOT}/Core/Compression/BufferCompressor.cpp ${ORTHANC_ROOT}/Core/Compression/ZlibCompressor.cpp ) target_link_libraries(RecoverCompressedFile CommonLibraries)