summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Caulier <[email protected]>2014-11-20 14:21:17 +0100
committerGilles Caulier <[email protected]>2014-11-20 14:21:17 +0100
commit77b043ca3c93d59d36f7223345cbcaba91b948b9 (patch)
tree2a11907b0b62b0832f44a317d08c79be54fa3253
parent298e2a0c66c0a440a8242ea53e02e3314be6a5d9 (diff)
only build tests sub-dir if BUILD_TESTING is on
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b71806e..ac2705f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -97,10 +97,10 @@ set(KGEOMAP_LIB_SO_VERSION_STRING "${KGEOMAP_LIB_SO_CUR_VERSION}.${KGEOMAP_LIB_S
# =======================================================
-subdirs(libkgeomap)
-subdirs(data)
+add_subdirectory(libkgeomap)
+add_subdirectory(data)
-if(KDE4_BUILD_TESTS)
+if(BUILD_TESTING)
MACRO_OPTIONAL_ADD_SUBDIRECTORY(tests)
MACRO_OPTIONAL_ADD_SUBDIRECTORY(calibrator)
MACRO_OPTIONAL_ADD_SUBDIRECTORY(demo)