Properly install header files.

This commit is contained in:
Nicolás Ortega Froysa 2018-09-02 12:08:50 +02:00
parent 1ca22e1aa4
commit c5ffedb844
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -42,7 +42,6 @@ set(SRCS
"src/node.cpp") "src/node.cpp")
set(HDRS set(HDRS
"include/neocomm.hpp"
"include/neocomm/channel.hpp" "include/neocomm/channel.hpp"
"include/neocomm/node.hpp") "include/neocomm/node.hpp")
@ -78,7 +77,10 @@ set_target_properties(${TARGET_NAME}
PROPERTIES PUBLIC_HEADER "${HDRS}") PROPERTIES PUBLIC_HEADER "${HDRS}")
install(TARGETS ${TARGET_NAME} install(TARGETS ${TARGET_NAME}
ARCHIVE DESTINATION lib/ ARCHIVE DESTINATION "lib/"
LIBRARY DESTINATION lib/ LIBRARY DESTINATION "lib/"
PUBLIC_HEADER DESTINATION include/ PUBLIC_HEADER DESTINATION "include/neocomm/"
CONFIGURATIONS release minsizerel) CONFIGURATIONS release minsizerel)
install(FILES "include/neocomm.hpp"
DESTINATION "include/")