diff --git a/FluidSynthConfig.cmake.in b/FluidSynthConfig.cmake.in index 1ffdf598..0be65e0e 100644 --- a/FluidSynthConfig.cmake.in +++ b/FluidSynthConfig.cmake.in @@ -6,5 +6,16 @@ # define variables for configuration options: # set(network-enabled @enable-network@) +include(CMakeFindDependencyMacro) +find_dependency(PkgConfig) +pkg_check_modules(GLIB IMPORTED_TARGET glib-2.0>=2.6.5 gthread-2.0>=2.6.5) +set(ALSA_SUPPORT @ALSA_SUPPORT@) +if(ALSA_SUPPORT) + pkg_check_modules(ALSA IMPORTED_TARGET alsa>=0.9.1) +endif() +set(LIBSNDFILE_SUPPORT @LIBSNDFILE_SUPPORT@) +if(LIBSNDFILE_SUPPORT) + pkg_check_modules(LIBSNDFILE IMPORTED_TARGET sndfile>=1.0.0) +endif() # finally, include the targets file include("${CMAKE_CURRENT_LIST_DIR}/FluidSynthTargets.cmake")