mjansson / foundation_lib

Cross-platform public domain foundation library in C providing basic support data types and functions to write applications and games in a platform-independent fashion.
The Unlicense
296 stars 24 forks source link

CMake support? #30

Open hydexon opened 5 years ago

hydexon commented 5 years ago

Hi, i liked your library and since i use mainly Windows, its really complicated install 478MB-872MB of the Python runtime just to compile this small library, and CMake is more "small" and is widely used for C/C++ projects is more quick to set up.

I have this little quick and dirty CMakeLists.txt script based from configure.py script, i tested it in Windows 10 in a Visual Studio 2017 installation and compiled as intended (NOTE: i didn't added the test, nor the examples binaries yet).

Thanks.

mjansson commented 5 years ago

I'm not a huge CMake fan, but if you could get a build up to the same functionality as the python+ninja build I would be ok with merging it in and maintain it

amerkoleci commented 4 years ago

Do you have any tutorial on how to use your build system? I saw you support msvc, xcode and ninja? Are visual studio projects auto-generated?