Skip to content

Commit

Permalink
Add cmake subdirectory to CMake install targets so finders available
Browse files Browse the repository at this point in the history
  • Loading branch information
timcnicholls committed Feb 29, 2024
1 parent 5dfd10c commit e2d1387
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down
3 changes: 3 additions & 0 deletions cpp/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
file(GLOB CMAKE_FILES *.cmake *.cmake.in)

install(FILES ${CMAKE_FILES} DESTINATION cmake)

0 comments on commit e2d1387

Please sign in to comment.