diff --git a/CMakeLists.txt b/CMakeLists.txt index e216aed..2820890 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,3 +53,15 @@ target_link_libraries(CrilleBassStrip PRIVATE juce::juce_recommended_lto_flags juce::juce_recommended_warning_flags ) +# Copy the finished VST3 to Release/ after build +set(RELEASE_DIR "${CMAKE_SOURCE_DIR}/Release") + +add_custom_command(TARGET CrilleBassStrip_VST3 POST_BUILD + COMMAND ${CMAKE_COMMAND} -E make_directory "${RELEASE_DIR}" + + COMMAND ${CMAKE_COMMAND} -E copy_directory + "$/../.." + "${RELEASE_DIR}/Crille Bass Strip.vst3" + + COMMENT "Copying Crille Bass Strip.vst3 to Release" +) \ No newline at end of file