File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ add_compile_options(-Wall) # Enable all warnings
1515include (GNUInstallDirs )
1616include (FindPackageHandleStandardArgs ) # find_package_handle_standard_args()
1717include (CTest )
18+ include (CMakePackageConfigHelpers )
1819
1920# Build option parameters (and defaults)
2021option (C_ONLY "SKIP building C++ library, build C only" OFF )
@@ -281,6 +282,17 @@ if(NOT C_ONLY)
281282 )
282283endif ()
283284
285+ # Install config files for find_package
286+ configure_package_config_file (
287+ "${CMAKE_CURRENT_SOURCE_DIR} /cmake/evioConfig.cmake.in"
288+ "${CMAKE_CURRENT_BINARY_DIR} /evioConfig.cmake"
289+ INSTALL_DESTINATION "${CMAKE_INSTALL_PREFIX} /evio/cmake"
290+ )
291+ install (
292+ FILES "${CMAKE_CURRENT_BINARY_DIR} /evioConfig.cmake"
293+ DESTINATION "${CMAKE_INSTALL_PREFIX} /evio/cmake"
294+ )
295+
284296# Unit testing setup
285297add_test (NAME EvioWriteAndReadBack_builder COMMAND bin/EvioWriteAndReadBack_builder 10 )
286298
You can’t perform that action at this time.
0 commit comments