JanWilczek / audio-plugin-template

A template repository that you can use for creating audio plugins with the JUCE C++ framework. It is based on CMake, uses CPM package manager, the JUCE C++ framework (obviously), and the GoogleTest framework. All of these are easy to change on demand. You can also base off your new repo off this template because the setup is very simple.
The Unlicense
107 stars 7 forks source link

added commented auto copy functionality to cmake file #3

Closed LasseMunk closed 3 months ago

ricardomatias commented 1 year ago

The correct way would be to use add_custom_command that is executed on the post build step, f.ex:

add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_BINARY_DIR}/AudioPlugin_artefacts/Debug/VST3/${PLUGIN_NAME}.vst3" "/Users/X/Library/Audio/Plug-Ins/VST3/${PLUGIN_NAME}.vst3")

For mac os there are no permissions involved when using the Library folder within the users workspace.

JanWilczek commented 5 months ago

Why not use COPY_PLUGIN_ON_BUILD from JUCE?

JanWilczek commented 3 months ago

Closed because of inactivity.