Hi, at http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/KDE4CTestNightlySetup.cmake?revision=882117&view=markup you can find a script (currently) named KDE4CTestNightlySetup.cmake, which purpose is to make setting up Nightly builds much easier. It has to included in a ctest new-style script and sets many of the necessary variables for running a Nightly build (like e.g. CTEST_SOURCE_DIRECTORY etc.).
It does: * set CTEST_SOURCE_DIRECTORY and CTEST_BINARY_DIRECTORY * set CTEST_SITE * set CTEST_BUILD_COMMAND (current very simplistic, works only for Makefiles under UNIX, this either has to be extended or should it call the new cmake --build ? probably) * set CVS_EXECUTABLE and SVN_EXECUTABLE * set CTEST_UPDATE_COMMAND and CTEST_CHECKOUT_COMMAND An example how to use it is here: http://websvn.kde.org/trunk/KDE/kdelibs/KDELibsNightly.cmake?revision=882121&view=markup A ctest script in CMAKE_SOURCE_DIR of the respective project has to be created, CTEST_CMAKE_GENERATOR, CTEST_UPDATE_TYPE and (CVS|SVN)_REPOSITORY have to be set, the the file has to be included, and then the normal testing commands can be executed. IMO this can make setting up Nightly builds much easier. What do you think ? One thing which is still missing is a way how to get variables predefined into the cmake-configure run during ctest_configure(). Does this have to be done by writing an initial CMakeCache.txt ? Alex _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
