forked from lagadic/visp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CTestConfig.cmake
308 lines (282 loc) · 7.85 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
#############################################################################
#
# ViSP, open source Visual Servoing Platform software.
# Copyright (C) 2005 - 2019 by Inria. All rights reserved.
#
# This software is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# See the file LICENSE.txt at the root directory of this source
# distribution for additional information about the GNU GPL.
#
# For using ViSP with software that can not be combined with the GNU
# GPL, please contact Inria about acquiring a ViSP Professional
# Edition License.
#
# See http://visp.inria.fr for more information.
#
# This software was developed at:
# Inria Rennes - Bretagne Atlantique
# Campus Universitaire de Beaulieu
# 35042 Rennes Cedex
# France
#
# If you have questions regarding the use of this file, please contact
# Inria at [email protected]
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# Description:
# CDash configuration.
#
# Authors:
# Fabien Spindler
#
#############################################################################
set(CTEST_PROJECT_NAME "ViSP")
set(CTEST_NIGHTLY_START_TIME "00:00:00 GMT")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "cdash.inria.fr")
set(CTEST_DROP_LOCATION "/CDash/submit.php?project=ViSP")
set(CTEST_DROP_SITE_CDASH TRUE)
#--------------------------------------------------------------------
# BUILNAME variable construction
# This variable will be used to set the build name which will appear
# on the ViSP dashboard http://cdash.irisa.fr/CDash/
#--------------------------------------------------------------------
# Start with the short system name, e.g. "Linux", "FreeBSD" or "Windows"
if(BUILDNAME)
set(BUILDNAME "${BUILDNAME}-${CMAKE_SYSTEM_NAME}")
else(BUILDNAME)
# To suppress the first space if BUILDNAME is not set
set(BUILDNAME "${CMAKE_SYSTEM_NAME}")
endif(BUILDNAME)
# Add i386 or amd64
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(BUILDNAME "${BUILDNAME}-amd64")
else()
set(BUILDNAME "${BUILDNAME}-i386")
endif()
# Add the compiler name, e.g. "g++, msvc..."
if(VISP_RUNTIME)
# msvc, mingw
set(BUILDNAME "${BUILDNAME}-${VISP_RUNTIME}")
else()
# g++
set(BUILDNAME "${BUILDNAME}-${CMAKE_BASE_NAME}")
endif()
# Find out the version of gcc being used.
if(CMAKE_COMPILER_IS_GNUCC)
exec_program(${CMAKE_CXX_COMPILER}
ARGS -dumpversion
OUTPUT_VARIABLE COMPILER_VERSION
)
#message("COMPILER_VERSION 1: ${COMPILER_VERSION}")
string(REGEX REPLACE ".* ([0-9])\\.([0-9])\\.[0-9].*" "\\1\\2"
COMPILER_VERSION ${COMPILER_VERSION})
#message("COMPILER_VERSION 2: ${COMPILER_VERSION}")
set(BUILDNAME "${BUILDNAME}${COMPILER_VERSION}")
endif(CMAKE_COMPILER_IS_GNUCC)
# Add the type of library generation, e.g. "Dynamic or Static"
if(BUILD_SHARED_LIBS)
set(BUILDNAME "${BUILDNAME}-Dyn")
else(BUILD_SHARED_LIBS)
set(BUILDNAME "${BUILDNAME}-Sta")
endif(BUILD_SHARED_LIBS)
# Add the build type, e.g. "Debug, Release..."
if(CMAKE_BUILD_TYPE)
set(BUILDNAME "${BUILDNAME}-${CMAKE_BUILD_TYPE}")
endif(CMAKE_BUILD_TYPE)
#---- Robots ----
# Add specific Afma4 robots
if(VISP_HAVE_AFMA4)
set(BUILDNAME "${BUILDNAME}-Afma4")
endif(VISP_HAVE_AFMA4)
# Add specific Afma6 robots
if(VISP_HAVE_AFMA6)
set(BUILDNAME "${BUILDNAME}-Afma6")
endif(VISP_HAVE_AFMA6)
# Add specific Ptu46 robots
if(VISP_HAVE_PTU46)
set(BUILDNAME "${BUILDNAME}-Ptu46")
endif(VISP_HAVE_PTU46)
# Add specific Biclops robots
if(VISP_HAVE_BICLOPS)
set(BUILDNAME "${BUILDNAME}-Biclops")
endif(VISP_HAVE_BICLOPS)
# Add specific Pioneer robots
if(VISP_HAVE_PIONEER)
set(BUILDNAME "${BUILDNAME}-aria")
endif()
# Add specific Haption Virtuose haptic device
if(VISP_HAVE_VIRTUOSE)
set(BUILDNAME "${BUILDNAME}-virtuose")
endif()
#---- Framegrabers/Sensors ----
# Firewire dc1394-2.x
if(VISP_HAVE_DC1394)
set(BUILDNAME "${BUILDNAME}-dc1394")
endif(VISP_HAVE_DC1394)
# Video 4 linux 2 (V4L2)
if(VISP_HAVE_V4L2)
set(BUILDNAME "${BUILDNAME}-v4l2")
endif(VISP_HAVE_V4L2)
# Directshow
if(VISP_HAVE_DIRECTSHOW)
set(BUILDNAME "${BUILDNAME}-dshow")
endif(VISP_HAVE_DIRECTSHOW)
if(VISP_HAVE_CMU1394)
set(BUILDNAME "${BUILDNAME}-CMU1394")
endif(VISP_HAVE_CMU1394)
if(VISP_HAVE_LIBFREENECT)
set(BUILDNAME "${BUILDNAME}-freenect")
endif()
if(VISP_HAVE_REALSENSE)
set(BUILDNAME "${BUILDNAME}-rs")
endif()
if(VISP_HAVE_PCL)
set(BUILDNAME "${BUILDNAME}-pcl")
endif()
if(VISP_HAVE_LIBUSB_1)
set(BUILDNAME "${BUILDNAME}-usb")
endif()
if(VISP_HAVE_FLYCAPTURE)
set(BUILDNAME "${BUILDNAME}-flycap")
endif()
if(VISP_HAVE_PYLON)
set(BUILDNAME "${BUILDNAME}-pylon")
endif()
if(VISP_HAVE_COMEDI)
set(BUILDNAME "${BUILDNAME}-comedi")
endif()
if(VISP_HAVE_ATI)
set(BUILDNAME "${BUILDNAME}-ati")
endif()
#---- Video-devices ----
# X11
if(VISP_HAVE_X11)
set(BUILDNAME "${BUILDNAME}-X11")
endif(VISP_HAVE_X11)
# GTK
if(VISP_HAVE_GTK)
set(BUILDNAME "${BUILDNAME}-gtk")
endif(VISP_HAVE_GTK)
# GDI (Windows Graphics Device Interface)
if(VISP_HAVE_GDI)
set(BUILDNAME "${BUILDNAME}-gdi")
endif(VISP_HAVE_GDI)
# D3D (Direct3D9)
if(VISP_HAVE_D3D9)
set(BUILDNAME "${BUILDNAME}-Direct3D")
endif(VISP_HAVE_D3D9)
# OpenCV
if(VISP_HAVE_OPENCV)
if(OpenCV_VERSION)
if(OPENCV_XFEATURES2D_FOUND OR OPENCV_XFEATURES2D_FOUND)
set(BUILDNAME "${BUILDNAME}-OpenCV_contrib${OpenCV_VERSION}")
else()
set(BUILDNAME "${BUILDNAME}-OpenCV${OpenCV_VERSION}")
endif()
else()
set(BUILDNAME "${BUILDNAME}-OpenCV")
endif()
endif(VISP_HAVE_OPENCV)
#---- Mathematics ----
# Lapack (Linear Algebra PACKage)
if(VISP_HAVE_LAPACK)
set(BUILDNAME "${BUILDNAME}-lapack")
endif()
# GSL (Gnu Scientific Library)
if(VISP_HAVE_GSL)
set(BUILDNAME "${BUILDNAME}-gsl")
endif()
if(VISP_HAVE_EIGEN3)
set(BUILDNAME "${BUILDNAME}-eigen3")
endif()
#---- Simulator ----
# Ogre
if(VISP_HAVE_OGRE)
set(BUILDNAME "${BUILDNAME}-Ogre")
endif()
if(VISP_HAVE_OIS)
set(BUILDNAME "${BUILDNAME}-OIS")
endif()
# Coin
if(VISP_HAVE_COIN3D)
set(BUILDNAME "${BUILDNAME}-Coin")
endif(VISP_HAVE_COIN3D)
# SoQt
if(VISP_HAVE_SOQT)
set(BUILDNAME "${BUILDNAME}-SoQt")
endif(VISP_HAVE_SOQT)
# Qt
if(VISP_HAVE_QT)
set(BUILDNAME "${BUILDNAME}-Qt${DESIRED_QT_VERSION}")
endif(VISP_HAVE_QT)
# SoWin
if(VISP_HAVE_SOWIN)
set(BUILDNAME "${BUILDNAME}-SoWin")
endif(VISP_HAVE_SOWIN)
# SoXt
if(VISP_HAVE_SOXT)
set(BUILDNAME "${BUILDNAME}-SoXt")
endif(VISP_HAVE_SOXT)
#---- Images ----
if(VISP_HAVE_JPEG)
set(BUILDNAME "${BUILDNAME}-jpeg")
endif(VISP_HAVE_JPEG)
if(VISP_HAVE_PNG)
set(BUILDNAME "${BUILDNAME}-png")
endif(VISP_HAVE_PNG)
#if(VISP_HAVE_ZLIB)
# set(BUILDNAME "${BUILDNAME}-zlib")
#endif()
#---- Misc ----
# XML
if(VISP_HAVE_XML2)
set(BUILDNAME "${BUILDNAME}-xml")
endif()
# PThread
if(VISP_HAVE_PTHREAD)
set(BUILDNAME "${BUILDNAME}-pthread")
endif()
# OpenMP
if(VISP_HAVE_OPENMP)
set(BUILDNAME "${BUILDNAME}-OpenMP")
endif()
if(VISP_HAVE_DMTX)
set(BUILDNAME "${BUILDNAME}-dmtx")
endif()
if(VISP_HAVE_ZBAR)
set(BUILDNAME "${BUILDNAME}-zbar")
endif()
if(VISP_HAVE_APRILTAG)
set(BUILDNAME "${BUILDNAME}-apriltag")
endif()
#---- Special compiler flags ----
if(ACTIVATE_WARNING_STRICT_OVERFLOW)
set(BUILDNAME "${BUILDNAME}-Wov")
endif()
if(ACTIVATE_WARNING_FLOAT_EQUAL)
set(BUILDNAME "${BUILDNAME}-Weq")
endif()
if(VISP_CXX_STANDARD EQUAL VISP_CXX_STANDARD_11)
set(BUILDNAME "${BUILDNAME}-c11")
elseif(VISP_CXX_STANDARD EQUAL VISP_CXX_STANDARD_14)
set(BUILDNAME "${BUILDNAME}-c14")
elseif(VISP_CXX_STANDARD EQUAL VISP_CXX_STANDARD_17)
set(BUILDNAME "${BUILDNAME}-c17")
endif()
if(ENABLE_MOMENTS_COMBINE_MATRICES)
set(BUILDNAME "${BUILDNAME}-Moment")
endif()
if(ENABLE_SSE2 OR ENABLE_SSE3 OR ENABLE_SSSE3)
set(BUILDNAME "${BUILDNAME}-sse")
endif()
#---- Suffix contrib ----
if(VISP_CONTRIB_MODULES_PATH)
set(BUILDNAME "${BUILDNAME}-contrib")
endif()
#message("BUILDNAME=${BUILDNAME}")