Skip to content

Commit

Permalink
cmake install lodepng.h too
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Stewart committed Feb 16, 2021
1 parent 5f01ab6 commit 6aef844
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ set(CMAKE_CXX_FLAGS_RELEASE "-O3")

include_directories(.)
add_library(lodepng STATIC lodepng.cpp)
install(TARGETS lodepng)
set_target_properties(lodepng PROPERTIES PUBLIC_HEADER lodepng.h)
install(TARGETS lodepng PUBLIC_HEADER)

add_executable(unittest lodepng_util.cpp lodepng_unittest.cpp)
target_link_libraries(unittest lodepng)
Expand Down

0 comments on commit 6aef844

Please sign in to comment.