flac/flac-config.cmake.in
martinRenou 39e6e570d8
Export flac properly when use with add_subdirectory (#285)
This allows for flac to be used in a larger CMake project
with add_subdirectory. It also allows for Ogg to be
build elsewhere in the larger project.
2022-05-30 20:22:45 +02:00

18 lines
311 B
CMake

@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
if(NOT TARGET Ogg::ogg)
find_dependency(Ogg)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/targets.cmake")
if(TARGET FLAC::FLAC)
set(FLAC_FLAC_FOUND 1)
endif()
if(TARGET FLAC::FLAC++)
set(FLAC_FLAC++_FOUND 1)
endif()
check_required_components(FLAC)