Skip to content

Commit

Permalink
Update PNG example
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed May 2, 2015
1 parent 5acd230 commit 0c13724
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/PNG/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ project(example-hunter-png)

hunter_add_package(PNG)

find_package(PNG REQUIRED)
find_package(PNG CONFIG REQUIRED)

add_executable(foo main.cpp)
target_compile_definitions(foo PRIVATE ${PNG_DEFINITIONS})
target_include_directories(foo PRIVATE ${PNG_INCLUDE_DIRS})
target_link_libraries(foo PRIVATE ${PNG_LIBRARIES})
target_link_libraries(foo PRIVATE PNG::png)

0 comments on commit 0c13724

Please sign in to comment.