From a14d003955ea59dca81c95cf0aedc3728fa21b89 Mon Sep 17 00:00:00 2001 From: Palana Date: Fri, 22 May 2015 00:24:17 +0200 Subject: [PATCH] Expose BUILD_TESTS as (advanced) CMake option This makes it easier to set BUILD_TESTS (introduced in 87ea0392b477cf1397d835a48c1e7fdaceeed79b) from ccmake/cmake-gui --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dcdccbc5..eabeb8bba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,6 +74,9 @@ elseif(UNIX AND NOT UNIX_STRUCTURE) list(APPEND CMAKE_INSTALL_RPATH "$ORIGIN") endif() +option(BUILD_TESTS "Build test directory (includes test sources and possibly a platform test executable)" FALSE) +mark_as_advanced(BUILD_TESTS) + if(NOT INSTALLER_RUN) add_subdirectory(deps)