Skip to content
Snippets Groups Projects
Commit 13e33439 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

install library target

Change-Id: I5a18fb74fb3ca22a44f0b926cd65d79d456eb226
parent bda9d4b3
No related branches found
No related tags found
No related merge requests found
......@@ -78,8 +78,9 @@ set_target_properties(dhtnet PROPERTIES PUBLIC_HEADER "${CMAKE_CURRENT_SOURCE_DI
configure_file(dhtnet.pc.in dhtnet.pc @ONLY)
# Install targets
install(TARGETS dhtnet)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dhtnet)
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/dhtnet.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/dhtnet.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
if (BUILD_TESTING AND NOT MSVC)
pkg_search_module(Cppunit REQUIRED IMPORTED_TARGET cppunit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment