Dear OpenFrameworks Developers!
I am happy to announce, that a working beta CMake build system is created for Openframeworks. It allows e.g. CLion usage and export into other IDEs. For now, it only works on Mac OSX, but other OS are in the development.
The approach is, to have a very simple project file (
CMakeLists.txt), in which you just have to set your source code files and active addOns (and if you want, AppName). The CMake code is modular and optimised for readability. So extending it, should be easy. For non experts / normal OF users, the large code is hidden.
At the moment, the approach is to have CMake not being intertwined into the OF file structure. This makes it easy to install it, delete it and also update OF, without much work. The down side is, that the addOns are also centralised in the CMake folder. It would be better to have the addOn CMake files in the addOn folder itself. But this requires that the addOn developers write them (or we do it for them) or they have to be copied into the folders. I included examples and templetes for creating new addOn cofigurations.
I would be glad if you try it out. Either command line, QTCreator or CLion.
Useful would be:
- Feedback on usability
- Testing (addOn examples do work)
- Collaboration (especially for other OS – Win, Linux etc.)
- Creation of external addOn files
Hope you find it useful!