Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake copy file when plugin is build #2

Open
LasseMunk opened this issue Oct 12, 2023 · 5 comments
Open

CMake copy file when plugin is build #2

LasseMunk opened this issue Oct 12, 2023 · 5 comments

Comments

@LasseMunk
Copy link

LasseMunk commented Oct 12, 2023

Hi Jan,

You could include to your ./CMakeLists.txt e.g.

configure_file("./build/plugin/AudioPlugin_artefacts/Debug/VST3/YourPluginName.vst3/Contents/x86_64-win/YourPluginName.vst3" "C:/Users/[USERNAME]/Desktop/myplugin" COPYONLY)

This way CMake will create a link between the files, and how I understand it, update the plugin in myplugin folder when ever the changes to the plugin is re compiled :)

(And thank you for the template, it saved me a ton of work)

@JanWilczek
Copy link
Owner

JanWilczek commented Oct 14, 2023 via email

@LasseMunk
Copy link
Author

Hi Jan,

I am still very new to c++ and cmake, so I don't have any wise words. I just used your template (thanks again) and spent some time understanding how to auto copy the compiled vst :)
I think a commented cmake line would make a lot of sense, maybe where you also write that it can lead to build errors with the description you just wrote :)

@JanWilczek
Copy link
Owner

JanWilczek commented Oct 15, 2023 via email

@LasseMunk
Copy link
Author

I'm not sure how to do it. I just cloned your repo, made a new branch but get a 403 error when I try to push and create a PR :)

remote: Permission to JanWilczek/audio-plugin-template.git denied to LasseMunk.

@LasseMunk
Copy link
Author

ah i think i figured it out. Never tried to fork a repo before :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants