-
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
Support finding modules not inside JUCE_ROOT_DIR #12
Comments
sounds reasonable, I won't have time to look at this right now, but will try when I get back from vacations. |
cool, thanks! |
To change the path detection you will just have add additional path hints to the For example, I just added a find_path(JUCE_ROOT_DIR
"modules/juce_core/juce_core.h"
HINTS
${JUCE_DIR}
${PROJECT_SOURCE_DIR}/../
${PROJECT_SOURCE_DIR}/JUCE
${CMAKE_CURRENT_LIST_DIR}/../../JUCE
${CMAKE_CURRENT_LIST_DIR}/../JUCE
DOC
"JUCE library directory"
) You might also noticed I choose to look for @remymuller: Any interested in a pull request for this? |
This only works if you want to change the global location of JUCE. What is required is a more detailed handling of additional search paths in I don't have time to test it right now though. |
+1 for this feature. I just had to makeup a small CMakeLists.txt just to include a trivial module. It's possible, but a bit of a pain:
The main trick is to
Thanks remymuller for the nice juce-cmake, BTW, I explored it a bit today and must say it all works fairly smoothly so far! |
Having the possibility to explicitly specify several directories where to look for modules would be appreciated.
Some useful code is now being released by third parties in the form of a JUCE module, or companies are writing their own code to be reused in that form.
That code certainly does not belong inside the "modules" directory of the JUCE repo/submodule one has cloned.
I think that the a config variable MODULES_ROOT_DIRS could be added to contain a list of those rather than having just one JUCE_ROOT_DIR.
That variable could then contain "juce/modules", then "another-lib/modules", etc., and find_package should look in all of them to find a module.
The text was updated successfully, but these errors were encountered: