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

cmake: install headers in subdir

Change-Id: Ic1580a9335e4f43cbceda0557a7a8ddf08f97dac
parent b96f10f2
Branches
No related tags found
No related merge requests found
......@@ -38,17 +38,17 @@ list (APPEND dhtnet_SOURCES
)
list (APPEND dhtnet_HEADERS
connectionmanager.h
multiplexed_socket.h
tls_session.h
certstore.h
ice_options.h
fileutils.h
string_utils.h
ip_utils.h
upnp/mapping.h
upnp/upnp_context.h
upnp/upnp_control.h
include/connectionmanager.h
include/multiplexed_socket.h
include/tls_session.h
include/certstore.h
include/ice_options.h
include/fileutils.h
include/string_utils.h
include/ip_utils.h
include/upnp/mapping.h
include/upnp/upnp_context.h
include/upnp/upnp_control.h
)
add_library(dhtnet ${dhtnet_SOURCES})
......@@ -63,7 +63,7 @@ set_target_properties(dhtnet PROPERTIES PUBLIC_HEADER "${CMAKE_CURRENT_SOURCE_DI
configure_file(dhtnet.pc.in dhtnet.pc @ONLY)
# Install targets
install(TARGETS dhtnet PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/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)
if (BUILD_TESTING AND NOT MSVC)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment