Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/cmake/ActsCreatePackageConfig.cmake is written in an unsupported language. File is not indexed.

0001 # Create relocatable CMake package config files
0002 
0003 include(CMakePackageConfigHelpers)
0004 
0005 # use path suggested by
0006 # https://cmake.org/cmake/help/v3.18/manual/cmake-packages.7.html
0007 set(install_package_config_dir "${CMAKE_INSTALL_LIBDIR}/cmake/Acts")
0008 
0009 # version is taken automatically from PROJECT_VERSION; no need to specify
0010 write_basic_package_version_file(
0011     ${PROJECT_BINARY_DIR}/ActsConfigVersion.cmake
0012     COMPATIBILITY SameMajorVersion
0013 )
0014 configure_package_config_file(
0015     ${CMAKE_CURRENT_LIST_DIR}/ActsConfig.cmake.in
0016     ${PROJECT_BINARY_DIR}/ActsConfig.cmake
0017     INSTALL_DESTINATION ${install_package_config_dir}
0018     PATH_VARS CMAKE_INSTALL_BINDIR CMAKE_INSTALL_INCLUDEDIR CMAKE_INSTALL_LIBDIR
0019 )
0020 
0021 # install cmake package configs
0022 install(
0023     FILES
0024         ${PROJECT_BINARY_DIR}/ActsConfigVersion.cmake
0025         ${PROJECT_BINARY_DIR}/ActsConfig.cmake
0026     DESTINATION ${install_package_config_dir}
0027 )
0028 
0029 # install third party FindXXX.cmake files
0030 install(
0031     FILES ${CMAKE_CURRENT_LIST_DIR}/FindOnnxRuntime.cmake
0032     DESTINATION ${install_package_config_dir}/Modules
0033 )
0034 
0035 # install target configs for all available components
0036 foreach(_component ${_components})
0037     install(
0038         EXPORT Acts${_component}Targets
0039         DESTINATION ${install_package_config_dir}
0040     )
0041 endforeach()