mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 13:04:18 -04:00
Export CMake configuration
This will install a <libdir>/cmake/taglib/ folder with CMake configuration, so that users can simply use find_package(TagLib) add_executable(myproject ...) target_link_libraries(myproject TagLib::tag)
This commit is contained in:
12
taglib-config.cmake.in
Normal file
12
taglib-config.cmake.in
Normal file
@ -0,0 +1,12 @@
|
||||
@PACKAGE_INIT@
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/taglib-targets.cmake")
|
||||
|
||||
set(TAGLIB_FOUND ${TagLib_FOUND})
|
||||
set(TAGLIB_VERSION ${TagLib_VERSION})
|
||||
|
||||
check_required_components("TagLib")
|
||||
|
||||
if(NOT TARGET TagLib::TagLib)
|
||||
add_library(TagLib::TagLib ALIAS TagLib::tag)
|
||||
endif()
|
Reference in New Issue
Block a user