Skip to content
Snippets Groups Projects
Verified Commit 474da183 authored by Hendrik's avatar Hendrik Committed by Ralph Giles
Browse files

Generate config file


Signed-off-by: default avatarRalph Giles <giles@thaumas.net>
Signed-off-by: default avatarevpobr <evpobr@gmail.com>
parent 7d1aa64f
No related branches found
No related tags found
No related merge requests found
......@@ -282,6 +282,12 @@ install(EXPORT opusfileTargets
NAMESPACE opusfile::
)
include(CMakePackageConfigHelpers)
configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/opusfileConfig.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/opusfileConfig.cmake"
INSTALL_DESTINATION
"${CMAKE_INSTALL_LIBDIR}/cmake/opusfile"
)
write_basic_package_version_file(
"opusfileConfigVersion.cmake"
VERSION "${PACKAGE_VERSION}"
......@@ -289,7 +295,7 @@ write_basic_package_version_file(
)
install(
FILES
"${CMAKE_CURRENT_SOURCE_DIR}/opusfileConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/opusfileConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/opusfileConfigVersion.cmake"
DESTINATION
"${CMAKE_INSTALL_LIBDIR}/cmake/opusfile"
......
@PACKAGE_INIT@
# Ported from CMakeFindDependencyMacro.cmake (finding configs and using pkgconfig as fallback)
set(cmake_quiet_arg)
if(${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
......@@ -41,3 +43,5 @@ set(cmake_fd_quiet_arg)
# Including targets of opusfile
include("${CMAKE_CURRENT_LIST_DIR}/opusfileTargets.cmake")
check_required_components(opusfile)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment