kiero icon indicating copy to clipboard operation
kiero copied to clipboard

feat: support for CMake build system

Open alextwothousand opened this issue 2 years ago • 4 comments

As I mostly use CMake for building C/C++ programs, I thought it would be convenient if a CMakeLists file was available, to allow people to just add_subdirectory this library, or use CMake's FetchContent library.

I also plan on writing C bindings for the kiero library, and so, having CMake support would make it that much easier!

alextwothousand avatar Oct 03 '21 08:10 alextwothousand

Hello, @alextwothousand. Nice idea, will be implemented in new (>v0.13.0) update. Have nice day!

Rebzzel avatar Oct 12 '21 11:10 Rebzzel

I have written a small CMakeLists to make this project work with CMake in a convenient way here: https://github.com/Curve/kiero-cmake

The project allows configuration of the render backend through cmake as well as enabling the usage of minhook through cmake, maybe it can be of help for you ^^

The current implementation of my CMakeLists removes the defines in kiero.h in order to define them itself through the CMakeLists, this is quite a hacky solution but it doesn't work with the current configuration implementation (#8 could be of use here)

Curve avatar Oct 18 '21 23:10 Curve

@Curve, uff, looks good.

The current implementation of my CMakeLists removes the defines in kiero.h in order to define them itself through the CMakeLists, this is quite a hacky solution but it doesn't work with the current configuration implementation (#8 could be of use here)

I think the new implementation (^0.13.0) will solve similar problems (there is a very user-friendly file for this).

PS:

I am very sorry that the update has not been released yet. Unfortunately I'm still very busy to release it. Please be patient. Thank you.

Rebzzel avatar Oct 19 '21 17:10 Rebzzel

@Rebzzel thanks ^^

And no problem, take all the time you need :D

Curve avatar Oct 19 '21 17:10 Curve