Enable components search in package config mode
authorevpobr <evpobr@gmail.com>
Tue, 30 Apr 2019 10:35:17 +0000 (15:35 +0500)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 May 2019 01:41:48 +0000 (11:41 +1000)
flac-config.cmake.in

index 154d0b8..8d6ba5a 100644 (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)