From 7a7987792abaad9cd69138bb815046bf45b664ba Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Mon, 22 Sep 2025 12:30:00 -0400 Subject: [PATCH 1/3] xo-randomgen: build: install examples with XO_ENABLE_EXAMPLES --- CMakeLists.txt | 4 +++- example/ex1/CMakeLists.txt | 6 ++++-- example/ex2/CMakeLists.txt | 8 +++++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 49871c13..4e50d0f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,4 +40,6 @@ xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets # ---------------------------------------------------------------- # install additional components -install(TARGETS randomgen_ex1 DESTINATION bin/randomgen/example) +if (XO_ENABLE_EXAMPLES) + install(TARGETS randomgen_ex1 DESTINATION bin/randomgen/example) +endif() diff --git a/example/ex1/CMakeLists.txt b/example/ex1/CMakeLists.txt index 0c809818..036b097a 100644 --- a/example/ex1/CMakeLists.txt +++ b/example/ex1/CMakeLists.txt @@ -1,2 +1,4 @@ -add_executable(randomgen_ex1 ex1.cpp) -xo_include_options2(randomgen_ex1) +if (XO_ENABLE_EXAMPLES) + add_executable(randomgen_ex1 ex1.cpp) + xo_include_options2(randomgen_ex1) +endif() diff --git a/example/ex2/CMakeLists.txt b/example/ex2/CMakeLists.txt index 877fae36..3f614530 100644 --- a/example/ex2/CMakeLists.txt +++ b/example/ex2/CMakeLists.txt @@ -1,3 +1,5 @@ -add_executable(randomgen_ex2 ex2.cpp) -xo_include_options2(randomgen_ex2) -xo_dependency(randomgen_ex2 indentlog) +if (XO_ENABLE_EXAMPLES) + add_executable(randomgen_ex2 ex2.cpp) + xo_include_options2(randomgen_ex2) + xo_dependency(randomgen_ex2 indentlog) +endif() From 2d24eb67c41ae9ef3f78003eac03fdf9c5448018 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Wed, 7 Jan 2026 16:52:50 -0500 Subject: [PATCH 2/3] xo-arena: DArenaHashMap: generative test + check load factor --- include/xo/randomgen/print.hpp | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 include/xo/randomgen/print.hpp diff --git a/include/xo/randomgen/print.hpp b/include/xo/randomgen/print.hpp deleted file mode 100644 index d5b0a992..00000000 --- a/include/xo/randomgen/print.hpp +++ /dev/null @@ -1,7 +0,0 @@ -/* @file print.hpp */ - -#pragma once - -#include "xo/indentlog/print/array.hpp" - -/* end print.hpp */ From 8d95c64c43467d33e8c65a482a0a2805d9d3dd04 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 27 Feb 2026 19:38:53 +1100 Subject: [PATCH 3/3] xo-cmake: setup to make share target available via cmake install --- cmake/randomgenConfig.cmake.in | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/randomgenConfig.cmake.in b/cmake/randomgenConfig.cmake.in index e66430b0..d835ad0d 100644 --- a/cmake/randomgenConfig.cmake.in +++ b/cmake/randomgenConfig.cmake.in @@ -1,4 +1,5 @@ @PACKAGE_INIT@ include("${CMAKE_CURRENT_LIST_DIR}/randomgenTargets.cmake") +include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Share.cmake") check_required_components("@PROJECT_NAME@")