summaryrefslogtreecommitdiffstats
path: root/ecmake/cmake/Modules/EFLCheck.cmake
diff options
context:
space:
mode:
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)