Updates so cmake checks correct extensions and version for new lv2 stuff

This commit is contained in:
Nick Lanham 2012-03-25 18:25:10 +02:00
parent 7c88aa44f7
commit 75285073cb

View File

@ -15,14 +15,16 @@ find_package(PkgConfig)
pkg_check_modules(LV2 REQUIRED lv2core>=6.0) pkg_check_modules(LV2 REQUIRED lv2core>=6.0)
pkg_check_modules(LV2EVENT REQUIRED lv2-lv2plug.in-ns-ext-event>=1.4) pkg_check_modules(LV2EVENT REQUIRED lv2-lv2plug.in-ns-ext-event>=1.4)
pkg_check_modules(LV2UI REQUIRED lv2-lv2plug.in-ns-extensions-ui>=2.4) pkg_check_modules(LV2UI REQUIRED lv2-lv2plug.in-ns-extensions-ui>=2.4)
pkg_check_modules(LV2URI REQUIRED lv2-lv2plug.in-ns-ext-uri-map>=1.4) pkg_check_modules(LV2URID REQUIRED lv2-lv2plug.in-ns-ext-urid>=1.0)
pkg_check_modules(LV2ATOM REQUIRED lv2-lv2plug.in-ns-ext-atom>=0.6)
pkg_check_modules(LV2STATE REQUIRED lv2-lv2plug.in-ns-ext-state>=0.6)
pkg_check_modules(SNDFILE REQUIRED sndfile>=1.0.20) pkg_check_modules(SNDFILE REQUIRED sndfile>=1.0.20)
pkg_check_modules(SAMPLERATE REQUIRED samplerate>=0.1.5) pkg_check_modules(SAMPLERATE REQUIRED samplerate>=0.1.5)
pkg_check_modules (GTK2 REQUIRED gtk+-2.0>=2.22.0) pkg_check_modules (GTK2 REQUIRED gtk+-2.0>=2.22.0)
find_package (EXPAT REQUIRED) find_package (EXPAT REQUIRED)
include_directories (${LV2_INCLUDE_DIRS} ${LV2EVENT_INCLUDE_DIRS} ${LV2UI_INCLUDE_DIRS} ${LV2URI_INCLUDE_DIRS} ${EXPAT_INCLUDE_DIRS} ${SNDFILE_INCLUDE_DIRS} ${SAMPLERATE_INCLUDE_DIRS} ${GTK2_INCLUDE_DIRS}) include_directories (${LV2_INCLUDE_DIRS} ${LV2EVENT_INCLUDE_DIRS} ${LV2UI_INCLUDE_DIRS} ${LV2URID_INCLUDE_DIRS} ${LV2ATOM_INCLUDE_DIRS} ${LV2STATE_INCLUDE_DIRS} ${EXPAT_INCLUDE_DIRS} ${SNDFILE_INCLUDE_DIRS} ${SAMPLERATE_INCLUDE_DIRS} ${GTK2_INCLUDE_DIRS})
link_directories (${LV2_LIBRARY_DIRS} ${LV2EVENT_LIBRARY_DIRS} ${LV2UI_LIBRARY_DIRS} ${LV2URI_LIBRARY_DIRS} ${EXPAT_LIBRARY_DIRS} ${SNDFILE_LIBRARY_DIRS} ${SAMPLERATE_LIBRARY_DIRS} ${GTK2_LIBRARY_DIRS}) link_directories (${LV2_LIBRARY_DIRS} ${LV2EVENT_LIBRARY_DIRS} ${LV2UI_LIBRARY_DIRS} ${LV2URID_LIBRARY_DIRS} ${LV2ATOM_LIBRARY_DIRS} ${LV2STATE_LIBRARY_DIRS} ${EXPAT_LIBRARY_DIRS} ${SNDFILE_LIBRARY_DIRS} ${SAMPLERATE_LIBRARY_DIRS} ${GTK2_LIBRARY_DIRS})
# config libraries # config libraries