diff options
author | Anton Adamansky <adamansky@gmail.com> | 2015-03-17 23:39:15 +0600 |
---|---|---|
committer | Anton Adamansky <adamansky@gmail.com> | 2015-03-17 23:39:15 +0600 |
commit | d0f0b6a825ed460f01f073499cee55a921225a7e (patch) | |
tree | 44a15c23f0f29328d96b4c069f3bd2c043b4dcc7 /ctest.cmake | |
parent | 82545e27b0acc047dffc1e36bed8c3f8119ff4cd (diff) | |
download | ejdb-d0f0b6a825ed460f01f073499cee55a921225a7e.tar.gz ejdb-d0f0b6a825ed460f01f073499cee55a921225a7e.tar.bz2 ejdb-d0f0b6a825ed460f01f073499cee55a921225a7e.zip |
#115 project refactoring
Diffstat (limited to 'ctest.cmake')
-rw-r--r-- | ctest.cmake | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ctest.cmake b/ctest.cmake new file mode 100644 index 0000000..1513e87 --- /dev/null +++ b/ctest.cmake @@ -0,0 +1,34 @@ +set(CTEST_SOURCE_DIRECTORY /home/adam/Projects/softmotions/ejdb) +set(CTEST_BINARY_DIRECTORY /home/adam/Projects/softmotions/ejdb/build) + +set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE) +set(CTEST_CMAKE_GENERATOR "Unix Makefiles") +set(CTEST_BUILD_CONFIGURATION "Debug") +set(CTEST_BUILD_OPTIONS) + +set(CTEST_CONFIGURE_COMMAND "${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE:STRING=${CTEST_BUILD_CONFIGURATION}") +set(CTEST_CONFIGURE_COMMAND "${CTEST_CONFIGURE_COMMAND} -DBUILD_TESTS:BOOL=ON ${CTEST_BUILD_OPTIONS}") +set(CTEST_CONFIGURE_COMMAND "${CTEST_CONFIGURE_COMMAND} \"-G${CTEST_CMAKE_GENERATOR}\"") +set(CTEST_CONFIGURE_COMMAND "${CTEST_CONFIGURE_COMMAND} \"${CTEST_SOURCE_DIRECTORY}\"") + +find_program(CTEST_COVERAGE_COMMAND NAMES gcov) +find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind) + +ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY}) + +ctest_start("Nightly") +#ctest_update() +ctest_configure() +ctest_build() +ctest_test() + +if (WITH_COVERAGE AND CTEST_COVERAGE_COMMAND) + ctest_coverage() +endif (WITH_COVERAGE AND CTEST_COVERAGE_COMMAND) +if (WITH_MEMCHECK AND CTEST_MEMORYCHECK_COMMAND) + ctest_memcheck() +endif (WITH_MEMCHECK AND CTEST_MEMORYCHECK_COMMAND) + +#ctest_submit() + + |