commit 97d38ae3359afe160e33deb5cc470c762b5a5cd2
parent c03a0beb8a26eafbb0a3adc46582d3c13817b1eb
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Wed, 15 Jun 2022 22:17:00 +0200
Options should be in the top of the file
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.17)
enable_testing()
project(CLAP C CXX)
+option(CLAP_BUILD_TESTS "Should CLAP build tests and the like?" OFF)
+
# If you use clap as a submodule of your plugin you need some interface projects
# to allow you to link. clap-core gives you the include directory and clap-plugin-core
# gives you the core + plugin-glue.
@@ -10,8 +12,6 @@ target_include_directories(clap-core INTERFACE include)
install(DIRECTORY include DESTINATION "." OPTIONAL EXCLUDE_FROM_ALL)
-option(CLAP_BUILD_TESTS "Should CLAP build tests and the like?" OFF)
-
if (${CLAP_BUILD_TESTS})
message(STATUS "Including clap tests, compile tests, and versions")
add_custom_target(clap-tests)