summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-12-18 12:03:29 +0100
committerMattes D <github@xoft.cz>2015-12-18 12:03:29 +0100
commiteb87214f6dbb29fcd3434894b07345d8efd3b859 (patch)
tree98a8fa6488ca3872b0a9b3e711df8bf9d1c67bc9 /tests
parentMerge pull request #2751 from cuberite/PieceStructuresFix (diff)
parentWorking coverage build (diff)
downloadcuberite-eb87214f6dbb29fcd3434894b07345d8efd3b859.tar
cuberite-eb87214f6dbb29fcd3434894b07345d8efd3b859.tar.gz
cuberite-eb87214f6dbb29fcd3434894b07345d8efd3b859.tar.bz2
cuberite-eb87214f6dbb29fcd3434894b07345d8efd3b859.tar.lz
cuberite-eb87214f6dbb29fcd3434894b07345d8efd3b859.tar.xz
cuberite-eb87214f6dbb29fcd3434894b07345d8efd3b859.tar.zst
cuberite-eb87214f6dbb29fcd3434894b07345d8efd3b859.zip
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 4db898fdb..bdab4bc58 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -2,6 +2,10 @@ cmake_minimum_required (VERSION 2.6)
enable_testing()
+if (CMAKE_BUILD_TYPE STREQUAL "COVERAGE")
+ setup_target_for_coverage("${PROJECT_NAME}_coverage" "ctest" coverage)
+endif()
+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(ChunkData)