pantoniou / libfyaml

Fully feature complete YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite.
MIT License
243 stars 74 forks source link

Add CMake build system? #25

Closed jlblancoc closed 3 years ago

jlblancoc commented 4 years ago

It would be great to have this awesome project ported to CMake, for easier integration with other tools, and probably as a first step to solve #10 too.

My initial attempt (working for the library itself for now) is here, for your reference: https://github.com/MRPT/libfyaml/commit/75addc8ec95a55eeb9339519d28f85887b748bc2

stilgarpl commented 3 years ago

@jlblancoc This cmake file looks good, but you should add CONFIGURE_DEPENDS flag to your file(GLOB*), so that it could correctly find files that were changed after the first build. Also, you should make a pull request for this.

jlblancoc commented 3 years ago

Awesome! I didn't know the flag CONFIGURE_DEPENDS. It was apparently added to CMake >= 3.12.

pantoniou commented 3 years ago

I'm merging this. It's been a long time in my TODOs but never got enough time to do it. If you could please add some rules to build fy-tool it would be appreciated.

Thanks a bunch!