diff --git a/cmake/LV2Config.cmake b/cmake/LV2Config.cmake new file mode 100644 index 00000000..97a6f3c3 --- /dev/null +++ b/cmake/LV2Config.cmake @@ -0,0 +1,9 @@ +# Configuration for this plugin +# TODO: generate version from git +set (LV2PLUGIN_VERSION_MINOR 0) +set (LV2PLUGIN_VERSION_MICRO 1) +set (LV2PLUGIN_NAME "Sfizz") +set (LV2PLUGIN_COMMENT "SFZ sampler") +set (LV2PLUGIN_URI "http://sfztools.github.io/sfizz") +set (LV2PLUGIN_AUTHOR "Paul Ferrand") +set (LV2PLUGIN_SPDX_LICENSE_ID "BSD-2-Clause") diff --git a/lv2/CMakeLists.txt b/lv2/CMakeLists.txt index 46c9d3f9..7ea112c5 100644 --- a/lv2/CMakeLists.txt +++ b/lv2/CMakeLists.txt @@ -6,15 +6,8 @@ set (LV2PLUGIN_PRJ_NAME "${CMAKE_PROJECT_NAME}_lv2") # Set the build directory as /lv2/.lv2/ set (PROJECT_BINARY_DIR "${PROJECT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.lv2") -# Configuration for this plugin -# TODO: generate version from git -set (LV2PLUGIN_VERSION_MINOR 0) -set (LV2PLUGIN_VERSION_MICRO 1) -set (LV2PLUGIN_NAME "Sfizz") -set (LV2PLUGIN_COMMENT "SFZ sampler") -set (LV2PLUGIN_URI "http://sfztools.github.io/sfizz") -set (LV2PLUGIN_AUTHOR "Paul Ferrand") -set (LV2PLUGIN_SPDX_LICENSE_ID "BSD-2-Clause") +# LV2 plugin specific settings +include (LV2Config) if (WIN32) set (LV2PLUGIN_EXT "dll")