Copy the VST in AU at installation time
This commit is contained in:
parent
aaa70c18db
commit
f452d7f895
1 changed files with 3 additions and 7 deletions
|
|
@ -275,13 +275,6 @@ elseif(SFIZZ_AU)
|
||||||
"${VST3SDK_BASEDIR}/public.sdk/source/vst/auwrapper/auresource.r")
|
"${VST3SDK_BASEDIR}/public.sdk/source/vst/auwrapper/auresource.r")
|
||||||
endif()
|
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")
|
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||||
target_compile_options(${AUPLUGIN_PRJ_NAME} PRIVATE
|
target_compile_options(${AUPLUGIN_PRJ_NAME} PRIVATE
|
||||||
"-Wno-extra"
|
"-Wno-extra"
|
||||||
|
|
@ -300,5 +293,8 @@ elseif(SFIZZ_AU)
|
||||||
install(DIRECTORY "${PROJECT_BINARY_DIR}/${AUPLUGIN_BUNDLE_NAME}"
|
install(DIRECTORY "${PROJECT_BINARY_DIR}/${AUPLUGIN_BUNDLE_NAME}"
|
||||||
DESTINATION "${AUPLUGIN_INSTALL_DIR}"
|
DESTINATION "${AUPLUGIN_INSTALL_DIR}"
|
||||||
COMPONENT "au")
|
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()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue