[CMake] making Nightly builds easier to setup
a.neundorf-work at gmx.net
Sun Nov 9 16:08:54 EST 2008
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
* 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:
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 ?
More information about the CMake