From 624dc479f1449c60d5f43c9776d3e12a81f12e3e Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Sun, 28 Dec 2025 21:58:26 +0100 Subject: [PATCH 1/2] Use simply include instead of find_package --- CMakeLists.txt | 22 ++++++++++------------ CMakePresets.json | 6 +++++- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50c42c5..86aced5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,28 +25,26 @@ option( ${PROJECT_IS_TOP_LEVEL} ) - add_library(beman.take_before INTERFACE) target_sources( - beman.take_before - INTERFACE - FILE_SET HEADERS - BASE_DIRS include - FILES include/beman/take_before/take_before.hpp - ) + beman.take_before + INTERFACE + FILE_SET HEADERS + BASE_DIRS include + FILES include/beman/take_before/take_before.hpp +) add_library(beman::take_before ALIAS beman.take_before) set_target_properties(beman.take_before PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON) -set(CMAKE_PREFIX_PATH ${CMAKE_CURRENT_SOURCE_DIR}/infra/cmake) - +# gersemi: on -find_package(beman-install-library REQUIRED) +include(infra/cmake/beman-install-library-config.cmake) beman_install_library(beman.take_before) if(BEMAN_TAKE_BEFORE_BUILD_TESTS) - enable_testing() - add_subdirectory(tests/beman/take_before) + enable_testing() + add_subdirectory(tests/beman/take_before) endif() if(BEMAN_TAKE_BEFORE_BUILD_EXAMPLES) diff --git a/CMakePresets.json b/CMakePresets.json index 483e1a3..971a04a 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -120,7 +120,11 @@ { "name": "_root-build", "hidden": true, - "jobs": 0 + "jobs": 0, + "targets": [ + "all", + "all_verify_interface_header_sets" + ] }, { "name": "gcc-debug", From 20aab9883cceb8e66b296af4a5115db01308f0e6 Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Sun, 28 Dec 2025 22:24:48 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3683418..64ff67d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# beman::take_before +# `beman::take_before`