Mercurial > hg > orthanc-stone
comparison Applications/Samples/CMakeLists.txt @ 548:d10a295b607a ct-pet-dose-struct
Added /MP option to cmakefile and improved readme with Windows command lines for configure/build
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 02 Apr 2019 13:27:51 +0200 |
parents | d4046c7f284d |
children | adc1be326b62 |
comparison
equal
deleted
inserted
replaced
547:0f43e479b49c | 548:d10a295b607a |
---|---|
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") |