Enable components search in package config mode

This commit is contained in:
evpobr 2019-04-30 15:35:17 +05:00 committed by Erik de Castro Lopo
parent 1794b0cd79
commit 29fadb6e47

View File

@ -7,3 +7,12 @@ if(@OGG_FOUND@)
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)