clap

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

commit 8fb8ee2bd770e1ff043368536b59b2bf8a557306
parent 5d0b339f5295b3b090f998bf6e1e1b30ce74706b
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Tue, 29 Jun 2021 18:46:01 +0200

Add install rules

Diffstat:
MCMakeLists.txt | 6++++--
Mexamples/glue/CMakeLists.txt | 4++++
Mexamples/host/CMakeLists.txt | 3+++
Mexamples/plugins/CMakeLists.txt | 3+++
4 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -11,4 +11,6 @@ include_directories(include) add_executable(clap-compile-test-c EXCLUDE_FROM_ALL src/main.c) add_executable(clap-compile-test-cpp EXCLUDE_FROM_ALL src/main.cc) -add_subdirectory(examples) -\ No newline at end of file +add_subdirectory(examples) + +install(DIRECTORY include DESTINATION "${CMAKE_INSTALL_PREFIX}") +\ No newline at end of file diff --git a/examples/glue/CMakeLists.txt b/examples/glue/CMakeLists.txt @@ -3,3 +3,6 @@ add_library(clap-plugin-glue EXCLUDE_FROM_ALL STATIC clap-plugin.cc set_target_properties(clap-plugin-glue PROPERTIES CXX_STANDARD 17 POSITION_INDEPENDENT_CODE ON) target_include_directories(clap-plugin-glue INTERFACE .) + +install(FILES clap-plugin.hh DESTINATION "${CMAKE_INSTALL_PREFIX}/include/clap/glue") +install(TARGETS clap-plugin-glue DESTINATION "${CMAKE_INSTALL_PREFIX}/lib") +\ No newline at end of file diff --git a/examples/host/CMakeLists.txt b/examples/host/CMakeLists.txt @@ -71,3 +71,5 @@ if (APPLE) find_library(CARBON Carbon) target_link_libraries(clap-host ${CARBON} ${AUDIO_UNIT} ${AUDIO_TOOLBOX} ${CORE_MIDI} ${CORE_AUDIO} ${CORE_SERVICES} ${CORE_FOUNDATION}) endif() + +install(TARGETS clap-host DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") +\ No newline at end of file diff --git a/examples/plugins/CMakeLists.txt b/examples/plugins/CMakeLists.txt @@ -22,3 +22,5 @@ add_library( gain/gain.cc) target_link_libraries(clap-plugins clap-plugin-glue Boost::serialization Boost::iostreams) set_target_properties(clap-plugins PROPERTIES CXX_STANDARD 20) + +install(TARGETS clap-plugins DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/clap") +\ No newline at end of file