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

cmake: install headers

Change-Id: I5757d41511c1bb1f54bd60abdadb1288dd466792
parent 49b07196
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,10 @@ target_include_directories(dhtnet PUBLIC
)
target_compile_definitions(dhtnet PUBLIC PJ_AUTOCONF=1)
install(TARGETS dhtnet)
set_target_properties(dhtnet PROPERTIES PUBLIC_HEADER "${dhtnet_HEADERS}")
install(TARGETS dhtnet
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dhtnet
)
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