summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-07-06 03:15:24 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-07-06 03:15:24 +0800
commitff137129512eb0567c89b4c3bd09192dce84d206 (patch)
treee33b7c449bace24dc9b927ec32ea5e240e90a247 /CMakeLists.txt
parentb976da12f664aaf6aa42b1b249fee5c9ca6553e4 (diff)
downloadmobilebling-ff137129512eb0567c89b4c3bd09192dce84d206.tar.gz
mobilebling-ff137129512eb0567c89b4c3bd09192dce84d206.tar.bz2
Split tests up into files, poke timer.cpp, make test-timer link to the tests
and enable CTest
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c9af4ed..6a08bf4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,6 +7,7 @@ include (CompizCommon)
include (CompizPackage)
include (cmake/base.cmake)
include (CheckFunctionExists)
+include (CTest)
set (CMAKE_CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo;MinSizeRe" CACHE INTERNAL "" FORCE)
@@ -114,10 +115,13 @@ add_subdirectory (kde)
add_subdirectory (po)
add_subdirectory (metadata)
add_subdirectory (src)
-add_subdirectory (tests)
add_subdirectory (xslt)
add_subdirectory (plugins)
+if (BUILD_TESTING)
+ add_subdirectory (tests)
+endif (BUILD_TESTING)
+
compiz_ensure_linkage ()
compiz_package_generation ("Compiz")
compiz_add_uninstall ()