clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit af669806c9bcc3242027182dacc90dfadae5ac00
parent f16c724a132ba09773f02bbae0deb4aecad1e585
Author: Robbert van der Helm <mail@robbertvanderhelm.nl>
Date:   Thu,  3 Nov 2022 15:17:39 +0100

Rename CMake library to clap with clap-core alias

This makes consuming this library from a build system much simpler since
the target name is now the same as the project name. Old uses of
`clap-core` will continue to work.

Diffstat:
MCMakeLists.txt | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -7,8 +7,13 @@ option(CLAP_BUILD_TESTS "Should CLAP build tests and the like?" OFF) # If you use clap as a submodule of your plugin you need some interface projects # to allow you to link. clap-core gives you the include directory and clap-plugin-core # gives you the core + plugin-glue. -add_library(clap-core INTERFACE) -target_include_directories(clap-core INTERFACE include) +add_library(clap INTERFACE) +target_include_directories(clap INTERFACE include) + +# Older versions of the CLAP interfaces only defined a `clap-core` library. +# Exposing the main library with the same name as the project makes it much +# simpler for build systems to find the CLAP package. +add_library(clap-core ALIAS clap) include(GNUInstallDirs) install(DIRECTORY "include/clap" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")