Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
usCTestScript_custom.cmake
Go to the documentation of this file.
1 
2 find_program(CTEST_COVERAGE_COMMAND NAMES gcov)
3 find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)
4 find_program(CTEST_GIT_COMMAND NAMES git)
5 
6 set(CTEST_SITE "bigeye")
7 if(WIN32)
8  set(CTEST_DASHBOARD_ROOT "C:/tmp/us")
9 else()
10  set(CTEST_DASHBOARD_ROOT "/tmp/us")
11  set(CTEST_BUILD_FLAGS "-j")
12  #set(CTEST_COMPILER "gcc-4.5")
13 endif()
14 
15 set(CTEST_CONFIGURATION_TYPE Release)
16 set(CTEST_BUILD_CONFIGURATION Release)
17 
18 set(CTEST_PARALLEL_LEVEL 4)
19 
20 set(US_TEST_SHARED 1)
21 set(US_TEST_STATIC 1)
22 
23 set(US_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/../")
24 
25 set(US_BUILD_CONFIGURATION )
26 foreach(i RANGE 7)
27  list(APPEND US_BUILD_CONFIGURATION ${i})
28 endforeach()
29 
30 if(WIN32 AND NOT MINGW)
31  set(US_CMAKE_GENERATOR
32  "Visual Studio 9 2008"
33  "Visual Studio 10"
34  "Visual Studio 11"
35  )
36 endif()
37 
38 include(${US_SOURCE_DIR}/cmake/usCTestScript.cmake)