2016-09-27 22:01:08 +03:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
2015-04-27 17:21:52 +03:00
|
|
|
#[=======================================================================[.rst:
|
|
|
|
CTest
|
|
|
|
-----
|
|
|
|
|
|
|
|
Configure a project for testing with CTest/CDash
|
|
|
|
|
|
|
|
Include this module in the top CMakeLists.txt file of a project to
|
2015-04-27 17:32:53 +03:00
|
|
|
enable testing with CTest and dashboard submissions to CDash::
|
2015-04-27 17:21:52 +03:00
|
|
|
|
2015-04-27 17:32:53 +03:00
|
|
|
project(MyProject)
|
|
|
|
...
|
|
|
|
include(CTest)
|
2015-04-27 17:21:52 +03:00
|
|
|
|
2015-04-27 17:32:53 +03:00
|
|
|
The module automatically creates a ``BUILD_TESTING`` option that selects
|
|
|
|
whether to enable testing support (``ON`` by default). After including
|
|
|
|
the module, use code like::
|
2015-04-27 17:21:52 +03:00
|
|
|
|
2015-04-27 17:32:53 +03:00
|
|
|
if(BUILD_TESTING)
|
|
|
|
# ... CMake code to create tests ...
|
|
|
|
endif()
|
2015-04-27 17:21:52 +03:00
|
|
|
|
|
|
|
to creating tests when testing is enabled.
|
|
|
|
|
2015-04-27 17:32:53 +03:00
|
|
|
To enable submissions to a CDash server, create a ``CTestConfig.cmake``
|
|
|
|
file at the top of the project with content such as::
|
2015-04-27 17:21:52 +03:00
|
|
|
|
2015-04-27 17:32:53 +03:00
|
|
|
set(CTEST_PROJECT_NAME "MyProject")
|
|
|
|
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
|
|
|
|
set(CTEST_DROP_METHOD "http")
|
|
|
|
set(CTEST_DROP_SITE "my.cdash.org")
|
|
|
|
set(CTEST_DROP_LOCATION "/submit.php?project=MyProject")
|
|
|
|
set(CTEST_DROP_SITE_CDASH TRUE)
|
2015-04-27 17:21:52 +03:00
|
|
|
|
|
|
|
(the CDash server can provide the file to a project administrator who
|
2015-04-27 17:32:53 +03:00
|
|
|
configures ``MyProject``). Settings in the config file are shared by
|
|
|
|
both this ``CTest`` module and the :manual:`ctest(1)` command-line
|
|
|
|
:ref:`Dashboard Client` mode (``ctest -S``).
|
2015-04-27 17:21:52 +03:00
|
|
|
|
|
|
|
While building a project for submission to CDash, CTest scans the
|
|
|
|
build output for errors and warnings and reports them with surrounding
|
|
|
|
context from the build log. This generic approach works for all build
|
|
|
|
tools, but does not give details about the command invocation that
|
2015-04-27 17:34:24 +03:00
|
|
|
produced a given problem. One may get more detailed reports by setting
|
|
|
|
the :variable:`CTEST_USE_LAUNCHERS` variable::
|
2015-04-27 17:21:52 +03:00
|
|
|
|
2015-04-27 17:32:53 +03:00
|
|
|
set(CTEST_USE_LAUNCHERS 1)
|
2015-04-27 17:21:52 +03:00
|
|
|
|
2015-04-27 17:34:24 +03:00
|
|
|
in the ``CTestConfig.cmake`` file.
|
2015-04-27 17:21:52 +03:00
|
|
|
#]=======================================================================]
|
2007-05-15 18:23:40 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
option(BUILD_TESTING "Build the testing tree." ON)
|
2005-08-03 21:19:36 +04:00
|
|
|
|
2008-05-02 19:25:25 +04:00
|
|
|
# function to turn generator name into a version string
|
2012-08-13 21:42:58 +04:00
|
|
|
# like vs7 vs71 vs8 vs9
|
2012-08-13 21:47:32 +04:00
|
|
|
function(GET_VS_VERSION_STRING generator var)
|
|
|
|
string(REGEX REPLACE "Visual Studio ([0-9][0-9]?)($|.*)" "\\1"
|
2011-01-28 14:32:27 +03:00
|
|
|
NUMBER "${generator}")
|
2012-08-13 21:47:32 +04:00
|
|
|
if("${generator}" MATCHES "Visual Studio 7 .NET 2003")
|
|
|
|
set(ver_string "vs71")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
set(ver_string "vs${NUMBER}")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
set(${var} ${ver_string} PARENT_SCOPE)
|
2012-08-13 21:50:14 +04:00
|
|
|
endfunction()
|
2008-05-02 19:25:25 +04:00
|
|
|
|
2012-10-15 22:34:01 +04:00
|
|
|
include(CTestUseLaunchers)
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(BUILD_TESTING)
|
2005-08-03 21:19:36 +04:00
|
|
|
# Setup some auxilary macros
|
2012-08-13 21:47:32 +04:00
|
|
|
macro(SET_IF_NOT_SET var val)
|
|
|
|
if(NOT DEFINED "${var}")
|
|
|
|
set("${var}" "${val}")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
|
|
|
endmacro()
|
2005-08-03 21:19:36 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
macro(SET_IF_SET var val)
|
2013-06-02 23:42:10 +04:00
|
|
|
if(NOT "${val}" STREQUAL "")
|
2012-08-13 21:47:32 +04:00
|
|
|
set("${var}" "${val}")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
|
|
|
endmacro()
|
2005-08-03 21:19:36 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
macro(SET_IF_SET_AND_NOT_SET var val)
|
2013-06-02 23:42:10 +04:00
|
|
|
if(NOT "${val}" STREQUAL "")
|
2006-04-28 17:58:15 +04:00
|
|
|
SET_IF_NOT_SET("${var}" "${val}")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
|
|
|
endmacro()
|
2006-04-28 17:58:15 +04:00
|
|
|
|
2005-08-03 21:19:36 +04:00
|
|
|
# Make sure testing is enabled
|
2012-08-13 21:47:32 +04:00
|
|
|
enable_testing()
|
2005-08-03 21:19:36 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(EXISTS "${PROJECT_SOURCE_DIR}/CTestConfig.cmake")
|
|
|
|
include("${PROJECT_SOURCE_DIR}/CTestConfig.cmake")
|
2006-04-28 17:58:15 +04:00
|
|
|
SET_IF_SET_AND_NOT_SET(NIGHTLY_START_TIME "${CTEST_NIGHTLY_START_TIME}")
|
|
|
|
SET_IF_SET_AND_NOT_SET(DROP_METHOD "${CTEST_DROP_METHOD}")
|
|
|
|
SET_IF_SET_AND_NOT_SET(DROP_SITE "${CTEST_DROP_SITE}")
|
|
|
|
SET_IF_SET_AND_NOT_SET(DROP_SITE_USER "${CTEST_DROP_SITE_USER}")
|
|
|
|
SET_IF_SET_AND_NOT_SET(DROP_SITE_PASSWORD "${CTEST_DROP_SITE_PASWORD}")
|
|
|
|
SET_IF_SET_AND_NOT_SET(DROP_SITE_MODE "${CTEST_DROP_SITE_MODE}")
|
|
|
|
SET_IF_SET_AND_NOT_SET(DROP_LOCATION "${CTEST_DROP_LOCATION}")
|
|
|
|
SET_IF_SET_AND_NOT_SET(TRIGGER_SITE "${CTEST_TRIGGER_SITE}")
|
ENH: merge CMake-CrossCompileBasic to HEAD
-add a RESULT_VARIABLE to INCLUDE()
-add CMAKE_TOOLCHAIN_FILE for specifiying your (potentially crosscompiling) toolchain
-have TRY_RUN() complain if you try to use it in crosscompiling mode (which were compiled but cannot run on this system)
-use CMAKE_EXECUTABLE_SUFFIX in TRY_RUN(), probably TRY_RUN won't be able to
run the executables if they have a different suffix because they are
probably crosscompiled, but nevertheless it should be able to find them
-make several cmake variables presettable by the user: CMAKE_C/CXX_COMPILER, CMAKE_C/CXX_OUTPUT_EXTENSION, CMAKE_SYSTEM_NAME, CMAKE_SYSTEM_INFO_FILE
-support prefix for GNU toolchains (arm-elf-gcc, arm-elf-ar, arm-elf-strip etc.)
-move ranlib on OSX from the file command to a command in executed in cmake_install.cmake
-add support for stripping during install in cmake_install.cmake
-split out cl.cmake from Windows-cl.cmake, first (very incomplete) step to support MS crosscompiling tools
-remove stdio.h from the simple C program which checks if the compiler works, since this may not exist for some embedded platforms
-create a new CMakeFindBinUtils.cmake which collects the search fro ar, ranlib, strip, ld, link, install_name_tool and other tools like these
-add support for CMAKE_FIND_ROOT_PATH for all FIND_XXX commands, which is a
list of directories which will be prepended to all search directories, right
now as a cmake variable, turning it into a global cmake property may need
some more work
-remove cmTestTestHandler::TryExecutable(), it's unused
-split cmFileCommand::HandleInstall() into slightly smaller functions
Alex
2007-05-17 21:20:44 +04:00
|
|
|
SET_IF_SET_AND_NOT_SET(UPDATE_TYPE "${CTEST_UPDATE_TYPE}")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2006-04-21 22:36:48 +04:00
|
|
|
|
2005-08-03 21:19:36 +04:00
|
|
|
# the project can have a DartConfig.cmake file
|
2012-08-13 21:47:32 +04:00
|
|
|
if(EXISTS "${PROJECT_SOURCE_DIR}/DartConfig.cmake")
|
|
|
|
include("${PROJECT_SOURCE_DIR}/DartConfig.cmake")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2005-08-03 21:19:36 +04:00
|
|
|
# Dashboard is opened for submissions for a 24 hour period starting at
|
|
|
|
# the specified NIGHTLY_START_TIME. Time is specified in 24 hour format.
|
|
|
|
SET_IF_NOT_SET (NIGHTLY_START_TIME "00:00:00 EDT")
|
2006-06-23 15:08:37 +04:00
|
|
|
SET_IF_NOT_SET(DROP_METHOD "http")
|
2005-08-03 21:19:36 +04:00
|
|
|
SET_IF_NOT_SET (COMPRESS_SUBMISSION ON)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2006-04-21 22:36:48 +04:00
|
|
|
SET_IF_NOT_SET (NIGHTLY_START_TIME "00:00:00 EDT")
|
2005-08-03 21:19:36 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(CVSCOMMAND cvs )
|
|
|
|
set(CVS_UPDATE_OPTIONS "-d -A -P" CACHE STRING
|
2006-05-25 18:21:46 +04:00
|
|
|
"Options passed to the cvs update command.")
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(SVNCOMMAND svn)
|
|
|
|
find_program(BZRCOMMAND bzr)
|
|
|
|
find_program(HGCOMMAND hg)
|
|
|
|
find_program(GITCOMMAND git)
|
2013-10-23 02:11:22 +04:00
|
|
|
find_program(P4COMMAND p4)
|
2005-08-03 21:19:36 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT UPDATE_TYPE)
|
|
|
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/CVS")
|
|
|
|
set(UPDATE_TYPE cvs)
|
|
|
|
elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.svn")
|
|
|
|
set(UPDATE_TYPE svn)
|
|
|
|
elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.bzr")
|
|
|
|
set(UPDATE_TYPE bzr)
|
|
|
|
elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.hg")
|
|
|
|
set(UPDATE_TYPE hg)
|
|
|
|
elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
|
|
|
|
set(UPDATE_TYPE git)
|
|
|
|
endif()
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-08-03 21:19:36 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
string(TOLOWER "${UPDATE_TYPE}" _update_type)
|
|
|
|
if("${_update_type}" STREQUAL "cvs")
|
|
|
|
set(UPDATE_COMMAND "${CVSCOMMAND}")
|
|
|
|
set(UPDATE_OPTIONS "${CVS_UPDATE_OPTIONS}")
|
|
|
|
elseif("${_update_type}" STREQUAL "svn")
|
|
|
|
set(UPDATE_COMMAND "${SVNCOMMAND}")
|
|
|
|
set(UPDATE_OPTIONS "${SVN_UPDATE_OPTIONS}")
|
|
|
|
elseif("${_update_type}" STREQUAL "bzr")
|
|
|
|
set(UPDATE_COMMAND "${BZRCOMMAND}")
|
|
|
|
set(UPDATE_OPTIONS "${BZR_UPDATE_OPTIONS}")
|
|
|
|
elseif("${_update_type}" STREQUAL "hg")
|
|
|
|
set(UPDATE_COMMAND "${HGCOMMAND}")
|
|
|
|
set(UPDATE_OPTIONS "${HG_UPDATE_OPTIONS}")
|
|
|
|
elseif("${_update_type}" STREQUAL "git")
|
|
|
|
set(UPDATE_COMMAND "${GITCOMMAND}")
|
|
|
|
set(UPDATE_OPTIONS "${GIT_UPDATE_OPTIONS}")
|
2013-10-23 02:11:22 +04:00
|
|
|
elseif("${_update_type}" STREQUAL "p4")
|
|
|
|
set(UPDATE_COMMAND "${P4COMMAND}")
|
|
|
|
set(UPDATE_OPTIONS "${P4_UPDATE_OPTIONS}")
|
2012-08-13 21:47:32 +04:00
|
|
|
endif()
|
2005-08-03 21:19:36 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(DART_TESTING_TIMEOUT 1500 CACHE STRING
|
2006-05-25 18:21:46 +04:00
|
|
|
"Maximum time allowed before CTest will kill the test.")
|
2005-08-03 21:19:36 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CTEST_SUBMIT_RETRY_DELAY 5 CACHE STRING
|
2010-06-03 18:34:34 +04:00
|
|
|
"How long to wait between timed-out CTest submissions.")
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CTEST_SUBMIT_RETRY_COUNT 3 CACHE STRING
|
2010-06-03 18:34:34 +04:00
|
|
|
"How many times to retry timed-out CTest submissions.")
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(MEMORYCHECK_COMMAND
|
2005-08-03 21:19:36 +04:00
|
|
|
NAMES purify valgrind boundscheck
|
|
|
|
PATHS
|
|
|
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Rational Software\\Purify\\Setup;InstallFolder]"
|
|
|
|
DOC "Path to the memory checking command, used for memory error detection."
|
|
|
|
)
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(SLURM_SBATCH_COMMAND sbatch DOC
|
2009-09-02 18:08:40 +04:00
|
|
|
"Path to the SLURM sbatch executable"
|
|
|
|
)
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(SLURM_SRUN_COMMAND srun DOC
|
2009-09-02 18:08:40 +04:00
|
|
|
"Path to the SLURM srun executable"
|
|
|
|
)
|
2012-08-13 21:47:32 +04:00
|
|
|
set(MEMORYCHECK_SUPPRESSIONS_FILE "" CACHE FILEPATH
|
2006-05-25 18:21:46 +04:00
|
|
|
"File that contains suppressions for the memory checker")
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(SCPCOMMAND scp DOC
|
2006-05-25 18:21:46 +04:00
|
|
|
"Path to scp command, used by CTest for submitting results to a Dart server"
|
|
|
|
)
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(COVERAGE_COMMAND gcov DOC
|
2006-05-25 18:21:46 +04:00
|
|
|
"Path to the coverage program that CTest uses for performing coverage inspection"
|
|
|
|
)
|
2012-08-13 21:47:32 +04:00
|
|
|
set(COVERAGE_EXTRA_FLAGS "-l" CACHE STRING
|
2011-10-22 18:38:16 +04:00
|
|
|
"Extra command line flags to pass to the coverage tool")
|
2005-08-03 21:19:36 +04:00
|
|
|
|
|
|
|
# set the site name
|
2012-08-13 21:47:32 +04:00
|
|
|
site_name(SITE)
|
2005-08-03 21:19:36 +04:00
|
|
|
# set the build name
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT BUILDNAME)
|
|
|
|
set(DART_COMPILER "${CMAKE_CXX_COMPILER}")
|
|
|
|
if(NOT DART_COMPILER)
|
|
|
|
set(DART_COMPILER "${CMAKE_C_COMPILER}")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT DART_COMPILER)
|
|
|
|
set(DART_COMPILER "unknown")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(WIN32)
|
|
|
|
set(DART_NAME_COMPONENT "NAME_WE")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
set(DART_NAME_COMPONENT "NAME")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT BUILD_NAME_SYSTEM_NAME)
|
|
|
|
set(BUILD_NAME_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(WIN32)
|
|
|
|
set(BUILD_NAME_SYSTEM_NAME "Win32")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(UNIX OR BORLAND)
|
2016-06-20 22:45:25 +03:00
|
|
|
get_filename_component(DART_COMPILER_NAME
|
|
|
|
"${DART_COMPILER}" ${DART_NAME_COMPONENT})
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2016-06-20 22:45:25 +03:00
|
|
|
get_filename_component(DART_COMPILER_NAME
|
2013-11-13 20:33:17 +04:00
|
|
|
"${CMAKE_MAKE_PROGRAM}" ${DART_NAME_COMPONENT})
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2016-06-20 22:45:25 +03:00
|
|
|
if(DART_COMPILER_NAME MATCHES "devenv")
|
|
|
|
GET_VS_VERSION_STRING("${CMAKE_GENERATOR}" DART_COMPILER_NAME)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2016-06-20 22:45:25 +03:00
|
|
|
set(BUILDNAME "${BUILD_NAME_SYSTEM_NAME}-${DART_COMPILER_NAME}")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2009-12-04 20:09:01 +03:00
|
|
|
|
|
|
|
# the build command
|
2012-08-13 21:47:32 +04:00
|
|
|
build_command(MAKECOMMAND_DEFAULT_VALUE
|
2010-09-22 05:46:52 +04:00
|
|
|
CONFIGURATION "\${CTEST_CONFIGURATION_TYPE}")
|
2012-08-13 21:47:32 +04:00
|
|
|
set(MAKECOMMAND ${MAKECOMMAND_DEFAULT_VALUE}
|
2010-09-22 05:46:52 +04:00
|
|
|
CACHE STRING "Command to build the project")
|
2009-12-04 20:09:01 +03:00
|
|
|
|
|
|
|
# the default build configuration the ctest build handler will use
|
|
|
|
# if there is no -C arg given to ctest:
|
2012-08-13 21:47:32 +04:00
|
|
|
set(DEFAULT_CTEST_CONFIGURATION_TYPE "$ENV{CMAKE_CONFIG_TYPE}")
|
|
|
|
if(DEFAULT_CTEST_CONFIGURATION_TYPE STREQUAL "")
|
|
|
|
set(DEFAULT_CTEST_CONFIGURATION_TYPE "Release")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-08-03 21:19:36 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
mark_as_advanced(
|
2011-01-28 14:32:27 +03:00
|
|
|
BZRCOMMAND
|
|
|
|
BZR_UPDATE_OPTIONS
|
2005-08-03 21:19:36 +04:00
|
|
|
COVERAGE_COMMAND
|
2011-10-22 18:38:16 +04:00
|
|
|
COVERAGE_EXTRA_FLAGS
|
2011-01-28 14:32:27 +03:00
|
|
|
CTEST_SUBMIT_RETRY_DELAY
|
|
|
|
CTEST_SUBMIT_RETRY_COUNT
|
2005-08-03 21:19:36 +04:00
|
|
|
CVSCOMMAND
|
|
|
|
CVS_UPDATE_OPTIONS
|
2011-01-28 14:32:27 +03:00
|
|
|
DART_TESTING_TIMEOUT
|
|
|
|
GITCOMMAND
|
2013-10-23 02:11:22 +04:00
|
|
|
P4COMMAND
|
2011-01-28 14:32:27 +03:00
|
|
|
HGCOMMAND
|
2012-08-13 21:42:58 +04:00
|
|
|
MAKECOMMAND
|
2005-08-03 21:19:36 +04:00
|
|
|
MEMORYCHECK_COMMAND
|
|
|
|
MEMORYCHECK_SUPPRESSIONS_FILE
|
|
|
|
PURIFYCOMMAND
|
|
|
|
SCPCOMMAND
|
2009-09-02 18:08:40 +04:00
|
|
|
SLURM_SBATCH_COMMAND
|
|
|
|
SLURM_SRUN_COMMAND
|
2010-06-03 18:34:34 +04:00
|
|
|
SITE
|
2011-01-28 14:32:27 +03:00
|
|
|
SVNCOMMAND
|
|
|
|
SVN_UPDATE_OPTIONS
|
2005-08-03 21:19:36 +04:00
|
|
|
)
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT RUN_FROM_DART)
|
|
|
|
set(RUN_FROM_CTEST_OR_DART 1)
|
|
|
|
include(CTestTargets)
|
|
|
|
set(RUN_FROM_CTEST_OR_DART)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
|
|
|
endif()
|