Mercurial > hg > orthanc-stone
comparison Applications/Samples/CMakeLists.txt @ 999:2d69b8bee484
Added tests for Dicom structure set classes (loaders and utils)
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 20 Sep 2019 11:58:33 +0200 |
parents | 0c0fc20a6902 |
children | 348866dd217c |
comparison
equal
deleted
inserted
replaced
998:38b6bb0bdd72 | 999:2d69b8bee484 |
---|---|
25 # https://blog.kitware.com/cmake-building-with-all-your-cores/ | 25 # https://blog.kitware.com/cmake-building-with-all-your-cores/ |
26 # https://docs.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes | 26 # https://docs.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes |
27 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP") | 27 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP") |
28 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") | 28 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") |
29 endif() | 29 endif() |
30 | |
31 | 30 |
32 #set(ENABLE_DCMTK ON) | 31 #set(ENABLE_DCMTK ON) |
33 | 32 |
34 set(ENABLE_SDL OFF CACHE BOOL "Target SDL Native application") | 33 set(ENABLE_SDL OFF CACHE BOOL "Target SDL Native application") |
35 set(ENABLE_QT OFF CACHE BOOL "Target Qt Native application") | 34 set(ENABLE_QT OFF CACHE BOOL "Target Qt Native application") |
234 ${GOOGLE_TEST_SOURCES} | 233 ${GOOGLE_TEST_SOURCES} |
235 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestCommands.cpp | 234 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestCommands.cpp |
236 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestExceptions.cpp | 235 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestExceptions.cpp |
237 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestMessageBroker.cpp | 236 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestMessageBroker.cpp |
238 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestStrategy.cpp | 237 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestStrategy.cpp |
238 ${ORTHANC_STONE_ROOT}/UnitTestsSources/TestStructureSet.cpp | |
239 ${ORTHANC_STONE_ROOT}/UnitTestsSources/UnitTestsMain.cpp | 239 ${ORTHANC_STONE_ROOT}/UnitTestsSources/UnitTestsMain.cpp |
240 ) | 240 ) |
241 | 241 |
242 target_link_libraries(UnitTests OrthancStone) | 242 target_link_libraries(UnitTests OrthancStone) |
243 | |
244 add_custom_command( | |
245 TARGET UnitTests | |
246 POST_BUILD | |
247 COMMAND ${CMAKE_COMMAND} -E copy | |
248 "${ORTHANC_STONE_ROOT}/UnitTestsSources/72c773ac-5059f2c4-2e6a9120-4fd4bca1-45701661.json" | |
249 "$<TARGET_FILE_DIR:UnitTests>/72c773ac-5059f2c4-2e6a9120-4fd4bca1-45701661.json" | |
250 ) | |
251 | |
243 endif() | 252 endif() |
244 | 253 |
245 ##################################################################### | 254 ##################################################################### |
246 ## Generate the documentation if Doxygen is present | 255 ## Generate the documentation if Doxygen is present |
247 ##################################################################### | 256 ##################################################################### |