summaryrefslogtreecommitdiffstats
path: root/ecmake/cmake/Modules/EFLCheck.cmake
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-04-16 09:40:15 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-04-16 09:40:15 +0200
commit6f682d7d94a30433531137476cd4aaa4dd200f3b (patch)
tree673f943db1f1df0e583509858f2c62c78708f9a7 /ecmake/cmake/Modules/EFLCheck.cmake
parent2224f05d43a0d782b626d09f397767597b3d7f4f (diff)
parent23929ded8ba244359e871e1d02ee1d05d060ea71 (diff)
downloadskeletons-6f682d7d94a30433531137476cd4aaa4dd200f3b.zip
skeletons-6f682d7d94a30433531137476cd4aaa4dd200f3b.tar.gz
Merge branch 'master' of asynk.ch:templates
Diffstat (limited to 'ecmake/cmake/Modules/EFLCheck.cmake')
-rw-r--r--ecmake/cmake/Modules/EFLCheck.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/ecmake/cmake/Modules/EFLCheck.cmake b/ecmake/cmake/Modules/EFLCheck.cmake
new file mode 100644
index 0000000..f729325
--- /dev/null
+++ b/ecmake/cmake/Modules/EFLCheck.cmake
@@ -0,0 +1,12 @@
+include(CTest)
+ENABLE_TESTING()
+add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
+
+find_package(Check)
+set (CHECK_ENABLED ${CHECK_FOUND})
+
+set(EFL_COVERAGE false CACHE BOOL "Whether coverage support should be built.'")
+if (EFL_COVERAGE)
+ include(EFLlcov REQUIRED)
+ ENABLE_COVERAGE()
+endif (EFL_COVERAGE)