forked from jhu-cisst/cisst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CTestConfig.cmake
119 lines (97 loc) · 3.44 KB
/
CTestConfig.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#
# $Id$
#
# (C) Copyright 2005-2010 Johns Hopkins University (JHU), All Rights
# Reserved.
#
# --- begin cisst license - do not edit ---
#
# This software is provided "as is" under an open source license, with
# no warranty. The complete license can be found in license.txt and
# http://www.cisst.org/cisst/license.txt.
#
# --- end cisst license ---
# Set a long and somewhat informative build name for Dart
set (BUILDNAME_TMP ${CMAKE_SYSTEM_NAME})
# Try to define a short name for generator
if (${CMAKE_GENERATOR} STREQUAL "Unix Makefiles")
set (BUILDNAME_TMP ${BUILDNAME_TMP}-Make)
else (${CMAKE_GENERATOR} STREQUAL "Unix Makefiles")
if (${CMAKE_GENERATOR} STREQUAL "NMake Makefiles")
set (BUILDNAME_TMP ${BUILDNAME_TMP}-NMake)
else (${CMAKE_GENERATOR} STREQUAL "NMake Makefiles")
if (${MSVC70})
set (BUILDNAME_TMP ${BUILDNAME_TMP}-VC7.0)
else (${MSVC70})
if (${MSVC71})
set (BUILDNAME_TMP ${BUILDNAME_TMP}-VC7.1)
else (${MSVC71})
if (${MSVC80})
set (BUILDNAME_TMP ${BUILDNAME_TMP}-VC8.0)
else (${MSVC80})
set (BUILDNAME_TMP ${BUILDNAME_TMP}-${CMAKE_GENERATOR})
endif (${MSVC80})
endif (${MSVC71})
endif (${MSVC70})
endif (${CMAKE_GENERATOR} STREQUAL "NMake Makefiles")
endif (${CMAKE_GENERATOR} STREQUAL "Unix Makefiles")
# Try to define a good name for compiler
if (CMAKE_COMPILER_IS_GNUCXX)
exec_program (${CMAKE_CXX_COMPILER} ARGS -dumpversion
OUTPUT_VARIABLE CISST_GNUCXX_VERSION)
set (BUILDNAME_TMP ${BUILDNAME_TMP}-gcc-${CISST_GNUCXX_VERSION})
endif (CMAKE_COMPILER_IS_GNUCXX)
# Debug, Release, ...
if (CMAKE_BUILD_TYPE)
set (BUILDNAME_TMP ${BUILDNAME_TMP}-${CMAKE_BUILD_TYPE})
endif (CMAKE_BUILD_TYPE)
# Tells which libraries have been compiled and assumed tests have been as well
if (CISST_cisstCommon)
set (BUILDNAME_TMP ${BUILDNAME_TMP}-Co)
endif (CISST_cisstCommon)
if (CISST_cisstVector)
set (BUILDNAME_TMP ${BUILDNAME_TMP}Ve)
endif (CISST_cisstVector)
if (CISST_cisstNumerical)
set (BUILDNAME_TMP ${BUILDNAME_TMP}Nu)
endif (CISST_cisstNumerical)
if (CISST_cisstInteractive)
set (BUILDNAME_TMP ${BUILDNAME_TMP}In)
endif (CISST_cisstInteractive)
if (CISST_cisstOSAbstraction)
set (BUILDNAME_TMP ${BUILDNAME_TMP}Os)
endif (CISST_cisstOSAbstraction)
if (CISST_cisstRobot)
set (BUILDNAME_TMP ${BUILDNAME_TMP}Ro)
endif (CISST_cisstRobot)
if (CISST_cisstParameterTypes)
set (BUILDNAME_TMP ${BUILDNAME_TMP}Pt)
endif (CISST_cisstParameterTypes)
if (CISST_cisstMultiTask)
set (BUILDNAME_TMP ${BUILDNAME_TMP}Mt)
endif (CISST_cisstMultiTask)
if (CISST_cisstStereoVision)
set (BUILDNAME_TMP ${BUILDNAME_TMP}Sv)
endif (CISST_cisstStereoVision)
# Tells if Python was used
if (CISST_HAS_SWIG_PYTHON)
set (BUILDNAME_TMP ${BUILDNAME_TMP}-Py)
endif (CISST_HAS_SWIG_PYTHON)
# Tells if cisstNetlib was used
if (CISST_HAS_CISSTNETLIB)
set (BUILDNAME_TMP ${BUILDNAME_TMP}-CiNe)
endif (CISST_HAS_CISSTNETLIB)
# Save to cache
set (BUILDNAME ${BUILDNAME_TMP}
CACHE STRING "Full name of build configuration." FORCE)
mark_as_advanced (BUILDNAME)
# Options for CDash
set (CTEST_PROJECT_NAME "cisst")
set (CTEST_DROP_METHOD "http")
set (CTEST_DROP_SITE "unittest.lcsr.jhu.edu")
set (CTEST_DROP_LOCATION "/CDash/submit.php?project=cisst")
set (CTEST_DROP_SITE_CDASH TRUE)
# Set maximum execution time
set (DART_TESTING_TIMEOUT 120) # in seconds
# the specified NIGHLY_START_TIME. Time is specified in 24 hour format.
set (CTEST_NIGHTLY_START_TIME "00:00:00 EST")