-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMake.cmake
40 lines (33 loc) · 1.36 KB
/
CMake.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
SET(ED_source_repository "git://cmake.org/cmake.git")
SET(dir "${CTEST_SCRIPT_DIRECTORY}/../EasyDashboardScripts")
INCLUDE("${dir}/EasyDashboardVariables.cmake")
# ED_cmd_qmake should be set in Support/EasyDashboardDefaults.cmake on
# machines that have Qt installed.
#
IF(NOT "${ED_cmd_qmake}" STREQUAL "")
# If we have a qmake...
IF(NOT "${ED_args}" MATCHES "BUILD_QtDialog_OFF")
# ...and the args do not tell us to turn the QtDialog OFF...
IF(NOT "${ED_system}" STREQUAL "Win64")
# ...and this is not a Win64 build...
#
# ...then turn the QtDialog ON:
#
ED_APPEND(ED_cache "BUILD_QtDialog:BOOL=ON")
ENDIF(NOT "${ED_system}" STREQUAL "Win64")
ENDIF(NOT "${ED_args}" MATCHES "BUILD_QtDialog_OFF")
ENDIF(NOT "${ED_cmd_qmake}" STREQUAL "")
# ED_cmd_git should be set in Support/EasyDashboardDefaults.cmake on
# machines that want to write GIT_EXECUTABLE into the CMake cache
# explicitly.
#
IF(NOT "${ED_cmd_git}" STREQUAL "")
ED_APPEND(ED_cache "GIT_EXECUTABLE:FILEPATH=${ED_cmd_git}")
ENDIF(NOT "${ED_cmd_git}" STREQUAL "")
IF(NOT "${ED_args}" MATCHES "CTEST_TEST_CTEST_OFF")
ED_APPEND(ED_cache "CTEST_TEST_CTEST:BOOL=ON")
ENDIF(NOT "${ED_args}" MATCHES "CTEST_TEST_CTEST_OFF")
IF(NOT "${ED_args}" MATCHES "NoPackage")
SET(ED_buildtarget "package")
ENDIF(NOT "${ED_args}" MATCHES "NoPackage")
INCLUDE("${dir}/EasyDashboard.cmake")