From f452d7f895f116cd3b46d79845ea6fdbcfe8d90f Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Fri, 23 Oct 2020 21:53:05 -0700 Subject: [PATCH] Copy the VST in AU at installation time --- vst/CMakeLists.txt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/vst/CMakeLists.txt b/vst/CMakeLists.txt index 0903f8ef..ea7f391d 100644 --- a/vst/CMakeLists.txt +++ b/vst/CMakeLists.txt @@ -275,13 +275,6 @@ elseif(SFIZZ_AU) "${VST3SDK_BASEDIR}/public.sdk/source/vst/auwrapper/auresource.r") endif() - # Copy VST3 in the bundle - add_custom_command(TARGET ${VSTPLUGIN_PRJ_NAME} POST_BUILD COMMAND - "${CMAKE_COMMAND}" "-E" - "copy_directory" - "${PROJECT_BINARY_DIR}/${VSTPLUGIN_BUNDLE_NAME}" - "${PROJECT_BINARY_DIR}/${AUPLUGIN_BUNDLE_NAME}/Contents/Resources/plugin.vst3") - if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") target_compile_options(${AUPLUGIN_PRJ_NAME} PRIVATE "-Wno-extra" @@ -300,5 +293,8 @@ elseif(SFIZZ_AU) install(DIRECTORY "${PROJECT_BINARY_DIR}/${AUPLUGIN_BUNDLE_NAME}" DESTINATION "${AUPLUGIN_INSTALL_DIR}" COMPONENT "au") + install(DIRECTORY "${PROJECT_BINARY_DIR}/${VSTPLUGIN_BUNDLE_NAME}/" + DESTINATION "${AUPLUGIN_INSTALL_DIR}/${AUPLUGIN_BUNDLE_NAME}/Contents/Resources/plugin.vst3" + COMPONENT "au") endif() endif()