-
Notifications
You must be signed in to change notification settings - Fork 41
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
How to add a Command Line Project to a Plugin Project? #490
Comments
Maybe i should open another issue for this, but I have one additional goal by using CMake with JUCE: Do you see any hope for this dream? :) |
I guess the easiest way to explain is to show you. I pushed a branch called Let me know if something is not clear or if you have more questions based on my example. |
It might be quite hard to get it working with the current state of FRUT, which only provides
However there is hope, since I'm also working on |
Thank you a lot for your reply! This is awesome, i love how supportive you are 👍 Regarding the |
Hi, I'm just starting out with Frut and unit testing. I'm trying to use your example-for-issue-490 branch for helping me getting started, as I want to unit test a Juce plugin. I'm almost there I think, I was able to compile everything and run the TestingExe target. Now I'd like to actually add a basic test to TestingExe/Source/Main.cpp. For instance, I could start out by checking the name of the plugin, a kind of HelloWorld unit test as done in this ADC talk . I guess I need to start by including the PluginProcessor in the test. I tried several variations along the lines of
but the build fails... Any hint, or even better a simple test example instanciating the plugin? [EDIT] Using Xcode |
For those interested, I solved my issue with the folllowing steps: In Plugin490/CMakeLists.txt, I added
to the HEADER_SEARCH_PATHS field of the jucer_project_settings section. Then I wrote a basic test with the following in TestingExe/Source/Main.cpp :
|
Hi there!
Thanks again for this great project, i am really looking forward to trying this out!
A little background to the question: I am working on a cross-platform OSX/Windows plugin. I'd like to begin to unit-test it, therefore I'd like to use Catch2. At the moment there is already a Jenkins pipeline running.
I created some basic tests, but with Projucer there is no possiblility to add a command-line sub-project to a Plugin-Project. Therefore I created another completely new JUCE command line project that statically links to the shared code of my plugin.
Of course this is not a good setup, since these two projects basically do not know each other, there is no possiblility to easily run the unit tests when developing the project within Visual Studio. The best would probably be to have another sub-project along with the sub-projects for each plugin type.
If i understand this project correctly, i am allowed to do anything i'd like to do in the CMakeLists.txt. But how would you set up this testing project? Do you have any advice on that?
Thanks a lot!
Stephan
The text was updated successfully, but these errors were encountered: