I’m getting following error for the same CMake file:
CMake Error at CMakeLists.txt:8 (find_package):
Could not find a package configuration file provided by "JUCE" with any of
the following names:
JUCEConfig.cmake
juce-config.cmake
It does not fit my repository structure. I want to keep the JUCE library only once for all our products whenever possible. Is it possible to do this with add_subdirectory somehow?
Could not find a package configuration file provided by "JUCE" with any of
the following names:
JUCEConfig.cmake
juce-config.cmake
Add the installation prefix of "JUCE" to CMAKE_PREFIX_PATH or set
"JUCE_DIR" to a directory containing one of the above files. If "JUCE"
provides a separate development package or SDK, be sure it has been
installed.
I also tried to set -JUCE_DIR=…/…/juce/install, but without any success so far. It looks like i need to point to a directory that contains a CMakeLists.txt in this case.
What about the contents of juce/install? Does it contain bin, include and lib folders? Does juce/install/lib/cmake/JUCE-6.0.{0,1,2,3,4}/JUCEConfig.cmake exist?