Open NeroBurner opened 5 years ago
I just realized that there are many cmakeification PRs here. Is this project not active anymore?
not dead, @lvandeve still commits, but I think he is not interested in cmake support
In the end, it's just a CMakeLists.txt. It's very helpful when integrating this into other projects.
@aleksey-nikolaev could you review my attempt at adding CMake support for lodepng? Anything missing here?
Add full cmake support. The project can either be used with
add_subdirectory
or be installed into the system (or some other directory) and be found withfind_package(lodepng)
. In both cases the cmake targetlodepng::lodepng
is all that needs to be linked.Having an install target also makes packaging easier.
test
(enabled by flag ENABLE_TESTING)note: I was only able to install SDL2 from my package manager, but benchmark, example_opengl and example_sdl use SDL (1)
If you have any questions about this commit I'd be happy to clear out any misunderstandings