summaryrefslogtreecommitdiffstats
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-12-15 21:52:38 +0100
committerMattes D <github@xoft.cz>2015-12-18 11:19:21 +0100
commit91d0abae4c8b0b4f6dfeb20a030848d08d369237 (patch)
tree98a8fa6488ca3872b0a9b3e711df8bf9d1c67bc9 /tests/CMakeLists.txt
parentMerge pull request #2751 from cuberite/PieceStructuresFix (diff)
downloadcuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.tar
cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.tar.gz
cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.tar.bz2
cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.tar.lz
cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.tar.xz
cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.tar.zst
cuberite-91d0abae4c8b0b4f6dfeb20a030848d08d369237.zip
Diffstat (limited to '')
-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)