How to build the JUCE source code with CMake

Hello,

I want to create a JUCE package for the package manager conan.io in order to be able to use it as dependency in other projects. How can I build the whole juce modules source code (https://github.com/julianstorer/JUCE/tree/master/modules) with CMake?

I tried many things, but I get a lot of errors (seems like it ignores the header files completely). Unfortunately, my C++ and CMake skills are still quite low. The project is located here: https://github.com/CodingSpiderFox/juce-conan
Can anyone please help me?

Thanks in advance.

You may want to look into this: JUCE conan package