mirror of https://github.com/zeldaret/tmc.git
properly handle libpng dependency
This commit is contained in:
parent
6e2cff9cfa
commit
578152af19
|
@ -1,9 +1,10 @@
|
||||||
file(GLOB_RECURSE sources *.c)
|
file(GLOB_RECURSE sources *.c)
|
||||||
|
|
||||||
|
find_package(PNG REQUIRED)
|
||||||
|
|
||||||
# TODO Makefile had a debug build with -DDEBUG
|
# TODO Makefile had a debug build with -DDEBUG
|
||||||
add_executable(gbagfx ${sources})
|
add_executable(gbagfx ${sources})
|
||||||
target_include_directories(gbagfx PRIVATE .)
|
target_include_directories(gbagfx PRIVATE .)
|
||||||
# TODO properly handle these dependencies
|
target_link_libraries(gbagfx PRIVATE PNG::PNG)
|
||||||
target_link_libraries(gbagfx PRIVATE png z)
|
|
||||||
|
|
||||||
install(TARGETS gbagfx RUNTIME DESTINATION bin)
|
install(TARGETS gbagfx RUNTIME DESTINATION bin)
|
||||||
|
|
Loading…
Reference in New Issue