###################### # # Meganizer - Media Organzier is a media management software # Copyright (C) 2010 - 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # ###################### # setting directories SET(CTEST_SOURCE_DIRECTORY "${CTEST_SCRIPT_DIRECTORY}") SET(CTEST_BINARY_DIRECTORY "${CTEST_SOURCE_DIRECTORY}/build/expermintal") # Extending the Module path with the local module path SET(CMAKE_MODULE_PATH ${CTEST_SOURCE_DIRECTORY}/cmake/modules ) INCLUDE(ProcessorCount) ProcessorCount(PROCESSOR_COUNT) #if(PROCESSOR_COUNT) # set(CTEST_BUILD_FLAGS "-j${PROCESSOR_COUNT}") #endif() # setting cmake (and configure options) and ctest command SET(BUILD_OPTIONS "-DBUILD_DEBUG=ON -DL10N_ALL=ON -DWITH_ALL_PLUGINS=ON -DBUILD_DEV=ON") #IF(NOT UNIX) # SET(BUILD_OPTIONS "${BUILD_OPTIONS} -DBINDINGS_KDE=1") #ENDIF(NOT UNIX) SET(CTEST_PROJECT_NAME "meganizer") 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) SET(CTEST_BUILD_CONFIGURATION "Debug") # 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") #SET(CTEST_CMAKE_COMMAND "${CMAKE_COMMAND} ${CONFIG_OPTIONS} ${CTEST_SOURCE_DIRECTORY}") SET(CTEST_CMAKE_COMMAND "\"${CMAKE_COMMAND}\" -G \"${CTEST_CMAKE_GENERATOR}\" ${BUILD_OPTIONS}") # hier muss jedoch auch einiges anderes gesetzt werden und er führt cmake nicht aus, also lieber die zeile darüber nutzen #SET(CTEST_CONFIGURE_COMMAND "${CMAKE_EXECUTABLE_NAME} ${BUILD_OPTIONS} ${CTEST_SOURCE_DIRECTORY}") FIND_PROGRAM(CTEST_MEMORYCHECK_COMMAND NAMES valgrind) FIND_PROGRAM(CTEST_COMMAND ctest) # adapted from DashboardScript.cmake found in http://www.vtk.org/Bug/file_download.php?file_id=3262&type=bug FIND_PROGRAM(MAKE_EXECUTABLE make) MATH(EXPR PROCESSOR_COUNT "${PROCESSOR_COUNT} + 1") SET(CTEST_INITIAL_CACHE " MAKECOMMAND:STRING=${MAKE_EXECUTABLE} -j${PROCESSOR_COUNT} ") SET(CTEST_COMMAND "\"${CTEST_COMMAND}\" -D Experimental -D ExperimentalMemCheck")