From a721748380e6b7c74564de3a33109aa506a31ca4 Mon Sep 17 00:00:00 2001 From: Martin Gels <gels@astron.nl> Date: Fri, 6 Mar 2009 08:52:42 +0000 Subject: [PATCH] bug 1005: Updated cmake file(s). --- LCS/Common/CMakeLists.txt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/LCS/Common/CMakeLists.txt b/LCS/Common/CMakeLists.txt index ccffe04c17c..a493add342c 100644 --- a/LCS/Common/CMakeLists.txt +++ b/LCS/Common/CMakeLists.txt @@ -1,4 +1,3 @@ - ## ------------------------------------------------------------------------------ ## Project characteristics @@ -6,9 +5,24 @@ project (Common) cmake_minimum_required (VERSION 2.5) +## ------------------------------------------------------------------------------ +## Enable test? + +option (COMMON_ENABLE_TESTING "Enable building and executing test programs?" NO ) + ## ------------------------------------------------------------------------------ ## Directories to be included in the build +include_directories (${Common_BINARY_DIR}/include) + +configure_file(${CMAKE_SOURCE_DIR}/config.h.cmake + ${Common_BINARY_DIR}/include/config.h) +configure_file(${Common_SOURCE_DIR}/lofar_config.h.cmake + ${Common_BINARY_DIR}/include/lofar_config.h) + add_subdirectory (include) add_subdirectory (src) -add_subdirectory (test) + +if (COMMON_ENABLE_TESTING) + add_subdirectory (test) +endif (COMMON_ENABLE_TESTING) -- GitLab