Skip to content

Commit

Permalink
cmake: Install websocketpp includes in the right cmake way, leaving o…
Browse files Browse the repository at this point in the history
…ut the examples and other stuff
  • Loading branch information
LocutusOfBorg committed Jul 12, 2018
1 parent c612a35 commit e99aef0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cmake/CMakeHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,9 @@ macro (final_target)
CONFIGURATIONS ${CMAKE_CONFIGURATION_TYPES})
endif ()

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

macro (link_boost)
Expand Down

0 comments on commit e99aef0

Please sign in to comment.