comparison Applications/Samples/CMakeLists.txt @ 551:90f3a60576a9 dev rtviewer19

Merged in ct-pet-dose-struct (pull request #2) Ct pet dose struct
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 02 Apr 2019 14:02:12 +0000
parents d10a295b607a
children adc1be326b62
comparison
equal deleted inserted replaced
545:e1ba16436d59 551:90f3a60576a9
9 include(../../Resources/CMake/OrthancStoneParameters.cmake) 9 include(../../Resources/CMake/OrthancStoneParameters.cmake)
10 10
11 if (OPENSSL_NO_CAPIENG) 11 if (OPENSSL_NO_CAPIENG)
12 add_definitions(-DOPENSSL_NO_CAPIENG=1) 12 add_definitions(-DOPENSSL_NO_CAPIENG=1)
13 endif() 13 endif()
14
15
16 # the following block has been borrowed from orthanc/**/Compiler.cmake
17 if (MSVC_MULTIPLE_PROCESSES)
18 # "If you omit the processMax argument in the /MP option, the
19 # compiler obtains the number of effective processors from the
20 # operating system, and then creates one process per effective
21 # processor"
22 # https://blog.kitware.com/cmake-building-with-all-your-cores/
23 # https://docs.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes
24 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
25 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
26 endif()
27
14 28
15 #set(ENABLE_DCMTK ON) 29 #set(ENABLE_DCMTK ON)
16 30
17 set(ENABLE_SDL OFF CACHE BOOL "Target SDL Native application") 31 set(ENABLE_SDL OFF CACHE BOOL "Target SDL Native application")
18 set(ENABLE_QT OFF CACHE BOOL "Target Qt Native application") 32 set(ENABLE_QT OFF CACHE BOOL "Target Qt Native application")