Use pkg-config to detect libpng

Only fall back to findpng
This commit is contained in:
James Larrowe
2020-10-01 08:18:47 -04:00
parent dfcba36448
commit 03e20138d3
2 changed files with 19 additions and 6 deletions

View File

@@ -35,9 +35,6 @@ if(srcdir STREQUAL bindir)
message(FATAL_ERROR "Terminating configuration")
endif()
find_package(PNG 1.2 REQUIRED)
find_package(BISON REQUIRED)
include_directories("${PROJECT_SOURCE_DIR}/include")
if(DEVELOP)