Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPackageTest.cmake
Go to the documentation of this file.
1 if(BUILD_TESTING)
2 
3 #package testing
4  if(NOT MITK_FAST_TESTING)
5 
6  # package testing in windows only for release
7  if(WIN32)
8  add_test(NAME mitkPackageTest CONFIGURATIONS Release
9  COMMAND ${CMAKE_COMMAND} --build ${MITK_BINARY_DIR} --config Release --target package)
10 
11  set_tests_properties( mitkPackageTest PROPERTIES
12  TIMEOUT 6000
13  LABELS "MITK;MITK-Plugins;PACKAGE_TESTS")
14  elseif(CMAKE_BUILD_TYPE)
15  add_test( NAME mitkPackageTest
16  COMMAND ${CMAKE_COMMAND} --build ${MITK_BINARY_DIR} --config ${CMAKE_BUILD_TYPE} --target package)
17 
18  set_tests_properties( mitkPackageTest PROPERTIES
19  TIMEOUT 6000
20  LABELS "MITK;MITK-Plugins;PACKAGE_TESTS"
21  RUN_SERIAL TRUE)
22  endif()
23 
24  endif() # NOT MITK_FAST_TESTING
25 
26 endif(BUILD_TESTING)
const std::string NAME