Skip to content

Commit e99aef0

Browse files
committed
cmake: Install websocketpp includes in the right cmake way, leaving out the examples and other stuff
1 parent c612a35 commit e99aef0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

cmake/CMakeHelpers.cmake

+3-6
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,9 @@ macro (final_target)
7979
CONFIGURATIONS ${CMAKE_CONFIGURATION_TYPES})
8080
endif ()
8181

82-
# install headers, directly from current source dir and look for subfolders with headers
83-
file (GLOB_RECURSE TARGET_INSTALL_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.hpp)
84-
foreach (hppfile ${TARGET_INSTALL_HEADERS})
85-
get_filename_component (currdir ${hppfile} PATH)
86-
install (FILES ${hppfile} DESTINATION "include/${TARGET_NAME}/${currdir}")
87-
endforeach()
82+
install (DIRECTORY ${CMAKE_SOURCE_DIR}/${TARGET_NAME}
83+
DESTINATION include/
84+
FILES_MATCHING PATTERN "*.hpp*")
8885
endmacro ()
8986

9087
macro (link_boost)

0 commit comments

Comments
 (0)