| 1 | From bf99566d041b8131e263a879d83057dc6b0c5a6f Mon Sep 17 00:00:00 2001
|
| 2 | Message-ID: <bf99566d041b8131e263a879d83057dc6b0c5a6f.1780653867.git.csantosb@inventati.org>
|
| 3 | From: Cayetano Santos <[email protected]>
|
| 4 | Date: Fri, 5 Jun 2026 11:34:34 +0200
|
| 5 | Subject: [PATCH] test
|
| 6 |
|
| 7 | ---
|
| 8 | CMakeLists.txt | 24 +++++++++++++-----------
|
| 9 | 1 file changed, 13 insertions(+), 11 deletions(-)
|
| 10 |
|
| 11 | diff --git a/CMakeLists.txt b/CMakeLists.txt
|
| 12 | index bbb153e64..60f9aebdf 100644
|
| 13 | |
| 14 | |
| 15 | @@ -117,14 +117,16 @@ set_property(TARGET libabc-pic PROPERTY OUTPUT_NAME abc-pic)
|
| 16 |
|
| 17 | if(NOT DEFINED ABC_SKIP_TESTS)
|
| 18 | enable_testing()
|
| 19 | - include(FetchContent)
|
| 20 | - FetchContent_Declare(
|
| 21 | - googletest
|
| 22 | - DOWNLOAD_EXTRACT_TIMESTAMP TRUE
|
| 23 | - # Specify the commit you depend on and update it regularly.
|
| 24 | - URL "https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip"
|
| 25 | - )
|
| 26 | - FetchContent_MakeAvailable(googletest)
|
| 27 | - include(GoogleTest)
|
| 28 | - add_subdirectory(test)
|
| 29 | -endif()
|
| 30 | \ No newline at end of file
|
| 31 | + # include(FetchContent)
|
| 32 | + # FetchContent_Declare(
|
| 33 | + # googletest
|
| 34 | + # DOWNLOAD_EXTRACT_TIMESTAMP TRUE
|
| 35 | + # # Specify the commit you depend on and update it regularly.
|
| 36 | + # URL "https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip"
|
| 37 | + # )
|
| 38 | + # FetchContent_MakeAvailable(googletest)
|
| 39 | + # include(GoogleTest)
|
| 40 | + find_package(GTest)
|
| 41 | + add_library(gtest_main ALIAS GTest::gtest_main)
|
| 42 | + add_subdirectory(test)
|
| 43 | +endif()
|
| 44 | --
|
| 45 | 2.54.0
|
| 46 |
|