From fabdcfce4e64f9683d79a04139ad86a30cc98aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yohann=20B=C3=A9n=C3=A9dic?= Date: Wed, 14 Aug 2024 07:35:53 +0200 Subject: [PATCH] trying again --- CMakeLists.txt | 4 +--- test/fetch_source_files.cmake => fetch_source_files.cmake | 0 test/fetch_source_groups.cmake => fetch_source_groups.cmake | 0 test/parse_file_options.cmake | 2 ++ 4 files changed, 3 insertions(+), 3 deletions(-) rename test/fetch_source_files.cmake => fetch_source_files.cmake (100%) rename test/fetch_source_groups.cmake => fetch_source_groups.cmake (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 814440a..8ff75da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,9 +2,6 @@ cmake_minimum_required(VERSION 3.19) project(test_add_target) -set(BUILD_TESTING ON CACHE STRING "") -set(BUILD_TESTING ON) - include(add_target.cmake) include(FetchContent) @@ -14,6 +11,7 @@ FetchContent_Declare( GIT_TAG v0.1.14 ) FetchContent_MakeAvailable(cmake_test) + include(cmake_test/cmake_test) ct_add_dir("test") diff --git a/test/fetch_source_files.cmake b/fetch_source_files.cmake similarity index 100% rename from test/fetch_source_files.cmake rename to fetch_source_files.cmake diff --git a/test/fetch_source_groups.cmake b/fetch_source_groups.cmake similarity index 100% rename from test/fetch_source_groups.cmake rename to fetch_source_groups.cmake diff --git a/test/parse_file_options.cmake b/test/parse_file_options.cmake index 3fe7e0f..8ff13a1 100644 --- a/test/parse_file_options.cmake +++ b/test/parse_file_options.cmake @@ -1,3 +1,5 @@ +include(cmake_test/cmake_test) + ct_add_test(NAME parse_file_options.main) function(${CMAKETEST_TEST}) parse_file_options("test.cpp" file options)