39e6e570d8
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.
18 lines
311 B
CMake
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)
|