-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comments
Hi Lasse,
Many thanks for the suggestion. I have explicitly not put copying into the CMake file because it requires elevated priviledges. Thus, it typically fails as a “build error”. That’s why I’m against including it as a default. Maybe as a commented CMake line then? How do you feel about it?
From: Lasse Munk
Sent: Thursday, October 12, 2023 11:14 PM
To: JanWilczek/audio-plugin-template ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [JanWilczek/audio-plugin-template] CMake copy file when plugin is build (Issue #2)
Hi Jan,
You could include 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 :)
—
Reply to this email directly, view it on GitHub <#2> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AF6TC47GQUNLE36X2D6SETLX7BMS5ANCNFSM6AAAAAA56GRA2M> .
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
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 :) |
Hi Lasse,
Great, could you then, please, post a related PR? 😊
From: Lasse Munk
Sent: Saturday, October 14, 2023 2:40 PM
To: JanWilczek/audio-plugin-template ***@***.***>
Cc: Jan Wilczek ***@***.***>; Comment ***@***.***>
Subject: Re: [JanWilczek/audio-plugin-template] CMake copy file when plugin is build (Issue #2)
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 :)
—
Reply to this email directly, view it on GitHub <#2 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AF6TC4Y53YYG63AY67LJHUDX7KBZHANCNFSM6AAAAAA56GRA2M> .
You are receiving this because you commented.Message ID: ***@***.***>
|
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. |
ah i think i figured it out. Never tried to fork a repo before :) |
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)
The text was updated successfully, but these errors were encountered: