summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-09-13 08:56:42 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-19 12:57:58 (GMT)
commitb63c1f6ce75d82028efc364cff8277c77854dcc3 (patch)
tree045e5c49c6a0193c5d74ff888b59d0555d1921ce /Tests/CMakeLists.txt
parentd341d077c5fb5c3df3732210b836a9ba6cb53873 (diff)
downloadCMake-b63c1f6ce75d82028efc364cff8277c77854dcc3.zip
CMake-b63c1f6ce75d82028efc364cff8277c77854dcc3.tar.gz
CMake-b63c1f6ce75d82028efc364cff8277c77854dcc3.tar.bz2
cmake-server: Add unit test
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r--Tests/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 97770ed..8cf1faa 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -2722,6 +2722,15 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release
ADD_TEST_MACRO(CMakeCommands.target_compile_definitions target_compile_definitions)
ADD_TEST_MACRO(CMakeCommands.target_compile_options target_compile_options)
+ if(CMake_HAVE_SERVER_MODE)
+ # The cmake server-mode test requires python for a simple client.
+ find_package(PythonInterp QUIET)
+ if(PYTHON_EXECUTABLE)
+ set(Server_BUILD_OPTIONS -DPYTHON_EXECUTABLE:FILEPATH=${PYTHON_EXECUTABLE})
+ ADD_TEST_MACRO(Server Server)
+ endif()
+ endif()
+
configure_file(
"${CMake_SOURCE_DIR}/Tests/CTestTestCrash/test.cmake.in"
"${CMake_BINARY_DIR}/Tests/CTestTestCrash/test.cmake"