We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to add a gin module via FetchContent or CPM?
I prefer this method over Git submodules.
The text was updated successfully, but these errors were encountered:
Maybe take a look at this project, they don't use submodules: https://github.com/stfufane/Midi-Transposer/blob/main/CMakeLists.txt
Sorry, something went wrong.
Yeah it works like I did by using the SOURCE_SUBDIR argument to fetch the modules directory instead of the root folder, otherwise you get conflicts.
SOURCE_SUBDIR
I got it working like this:
CPMAddPackage(NAME Gin GITHUB_REPOSITORY FigBug/Gin DOWNLOAD_ONLY TRUE GIT_TAG master) juce_add_module(${Gin_SOURCE_DIR}/modules/gin) juce_add_module(${Gin_SOURCE_DIR}/modules/gin_graphics) ...
This enables me to only add the modules I need.
@FigBug Can I suggest to add this to the README?
No branches or pull requests
Is it possible to add a gin module via FetchContent or CPM?
I prefer this method over Git submodules.
The text was updated successfully, but these errors were encountered: