build: label installation targets with 'development' component

This commit is contained in:
Danny Robson 2019-06-21 15:55:39 +10:00
parent b9d534048d
commit 493317cc9c

View File

@ -555,11 +555,11 @@ add_library(cruft-util ALIAS cruft)
target_include_directories(cruft PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
install (TARGETS cruft LIBRARY)
install (TARGETS cruft LIBRARY COMPONENT development)
set (headers ${UTIL_FILES})
list (FILTER headers INCLUDE REGEX "\\.hpp$")
install (FILES ${headers} DESTINATION "include/cruft/util")
install (FILES ${headers} DESTINATION "include/cruft/util" COMPONENT development)
search_libs (SHM_LIBS shm_open rt)
@ -743,6 +743,8 @@ FILES
"${CMAKE_CURRENT_BINARY_DIR}/libcruft.pc"
DESTINATION
"share/pkgconfig"
COMPONENT
development
)