###################### # # Copyright (C) 2010 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301 USA. # ###################### # setting directories SET(CTEST_SOURCE_DIRECTORY "${CTEST_SCRIPT_DIRECTORY}") SET(CTEST_BINARY_DIRECTORY "${CTEST_SOURCE_DIRECTORY}/build/nightly") # setting cmake (and configure options) and ctest command SET(BUILD_OPTIONS "-DBUILD_DEBUG=ON -DBUILD_DEV=ON") #IF(NOT UNIX) # SET(BUILD_OPTIONS "${BUILD_OPTIONS} -DBINDINGS_KDE=1") #ENDIF(NOT UNIX) SET(CTEST_PROJECT_NAME "libengsas") SET(CTEST_CMAKE_GENERATOR "Unix Makefiles") IF(WIN32) SET(CTEST_CMAKE_GENERATOR "MinGW Makefiles") ENDIF(WIN32) # binary dir is wiped before building SET(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE) # configure custom settings CONFIGURE_FILE(${CTEST_SOURCE_DIRECTORY}/CTestCustom.cmake.in ${CTEST_BINARY_DIRECTORY}/CTestCustom.cmake) # read custom settings CTEST_READ_CUSTOM_FILES("${CTEST_BINARY_DIRECTORY}") # doesn't seem to work # needed, so that ctest can analyize warning and errors correctly # SET(ENV{LC_MESSAGES} "en_EN") FIND_PROGRAM(CTEST_SVN_COMMAND NAMES svn) #SET(CTEST_CMAKE_COMMAND "${CMAKE_COMMAND} ${CONFIG_OPTIONS} ${CTEST_SOURCE_DIRECTORY}") SET(CTEST_CMAKE_COMMAND "\"${CMAKE_COMMAND}\" -G \"${CTEST_CMAKE_GENERATOR}\" ${BUILD_OPTIONS}") #SET(CTEST_CONFIGURE_COMMAND "${CMAKE_COMMAND} ${CONFIG_OPTIONS} ${CTEST_SOURCE_DIRECTORY}") FIND_PROGRAM(CTEST_MEMORYCHECK_COMMAND NAMES valgrind) FIND_PROGRAM(CTEST_COMMAND ctest) SET(CTEST_COMMAND "\"${CTEST_COMMAND}\" -D Nightly -D NightlyMemCheck")