From e2d1387ebf229ac3f498e19383e44e46f6970aa5 Mon Sep 17 00:00:00 2001 From: Tim Nicholls Date: Tue, 10 Oct 2023 08:15:48 +0100 Subject: [PATCH] Add cmake subdirectory to CMake install targets so finders available --- cpp/CMakeLists.txt | 3 +++ cpp/cmake/CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 cpp/cmake/CMakeLists.txt diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index ce21c3f60..eaf672048 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -153,6 +153,9 @@ include_directories(${CMAKE_BINARY_DIR}/include) # Add common/include directory to include path include_directories(${COMMON_DIR}/include) +# Add the cmake subdirectory so that CMake finders are installed +add_subdirectory(cmake) + # Add the common subdirectory add_subdirectory(${COMMON_DIR}) diff --git a/cpp/cmake/CMakeLists.txt b/cpp/cmake/CMakeLists.txt new file mode 100644 index 000000000..c9f0c5719 --- /dev/null +++ b/cpp/cmake/CMakeLists.txt @@ -0,0 +1,3 @@ +file(GLOB CMAKE_FILES *.cmake *.cmake.in) + +install(FILES ${CMAKE_FILES} DESTINATION cmake)