summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHenny022p <info@henny022.de>2022-01-20 14:12:47 +0100
committerHenny022p <info@henny022.de>2022-01-20 14:12:47 +0100
commit578152af198232082c8b1ebb0a2d0314d4ade12c (patch)
tree8975198273bd3ed0f0a08f426de01b5823ac9eac /tools
parent6e2cff9cfacbd22a81a8847755f5af961d927ab5 (diff)
properly handle libpng dependency
Diffstat (limited to 'tools')
-rw-r--r--tools/src/gbagfx/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/src/gbagfx/CMakeLists.txt b/tools/src/gbagfx/CMakeLists.txt
index cc7f1402..54e5993c 100644
--- a/tools/src/gbagfx/CMakeLists.txt
+++ b/tools/src/gbagfx/CMakeLists.txt
@@ -1,9 +1,10 @@
file(GLOB_RECURSE sources *.c)
+find_package(PNG REQUIRED)
+
# TODO Makefile had a debug build with -DDEBUG
add_executable(gbagfx ${sources})
target_include_directories(gbagfx PRIVATE .)
-# TODO properly handle these dependencies
-target_link_libraries(gbagfx PRIVATE png z)
+target_link_libraries(gbagfx PRIVATE PNG::PNG)
install(TARGETS gbagfx RUNTIME DESTINATION bin)