[Marble-commits] KDE/kdeedu/marble
Andrew Manson
g.real.ate at gmail.com
Mon Aug 24 13:23:12 CEST 2009
SVN commit 1014984 by mansona:
adding the CTest script that will atomatically run tests and submit info
to the CDash Dashboard. Also supressing the policy warnings in the QTONLY
build without changing behaviour.
M +7 -0 CMakeLists.txt
M +19 -0 tests/CMakeLists.txt
A tests/CTestNightlyScript.cmake.in
--- trunk/KDE/kdeedu/marble/CMakeLists.txt #1014983:1014984
@@ -50,6 +50,13 @@
# all previous releases lack QT_QTSCRIPT_LIBRARY needed for panoramio
# this might be replaced by a workaround
cmake_minimum_required( VERSION 2.4.8 )
+
+ #supress the policy warnings while keeping the same behaviour
+ if( COMMAND cmake_policy )
+ cmake_policy( SET CMP0005 OLD )
+ cmake_policy( SET CMP0003 OLD )
+ endif( COMMAND cmake_policy )
+
endif( QTONLY )
####################################################
--- trunk/KDE/kdeedu/marble/tests/CMakeLists.txt #1014983:1014984
@@ -29,7 +29,26 @@
#############################################################
+#############################################################
+# Configure the test scripts and put them in the project root
+# directory.
+#############################################################
+#make sure that the cmake and ctest stuff is available
+if( CMAKE_COMMAND AND CMAKE_CTEST_COMMAND )
+
+configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/CTestNightlyScript.cmake.in"
+ "${PROJECT_BINARY_DIR}/CTestNightlyScript.cmake" )
+
+else( CMAKE_COMMAND AND CMAKE_CTEST_COMMAND )
+
+message( STATUS "Both the CTest and CMake command are needed to create test scripts" )
+message( STATUS "Test Scripts have not been created" )
+
+endif( CMAKE_COMMAND AND CMAKE_CTEST_COMMAND )
+
+
#############################################################
# Add extra Libs for testing Plugins
#############################################################
More information about the Marble-commits
mailing list