cmake: Install websocketpp includes in the right cmake way, leaving out the examples and other stuff

This commit is contained in:
Gianfranco Costamagna committed 2018-07-12 20:25:09 +02:00
1 parent c612a35f06
commit e99aef04c3
1 file changed
+3 -6
+3 -6
View File
@@ -79,12 +79,9 @@ macro (final_target)
CONFIGURATIONS ${CMAKE_CONFIGURATION_TYPES}) CONFIGURATIONS ${CMAKE_CONFIGURATION_TYPES})
endif () endif ()
# install headers, directly from current source dir and look for subfolders with headers install (DIRECTORY ${CMAKE_SOURCE_DIR}/${TARGET_NAME}
file (GLOB_RECURSE TARGET_INSTALL_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.hpp) DESTINATION include/
foreach (hppfile ${TARGET_INSTALL_HEADERS}) FILES_MATCHING PATTERN "*.hpp*")
get_filename_component (currdir ${hppfile} PATH)
install (FILES ${hppfile} DESTINATION "include/${TARGET_NAME}/${currdir}")
endforeach()
endmacro () endmacro ()
macro (link_boost) macro (link_boost)