xo-cmake: + xo_install_library2()
This commit is contained in:
parent
3da73f5d3c
commit
795d5ddb69
1 changed files with 16 additions and 0 deletions
|
|
@ -49,6 +49,22 @@ macro(xo_install_include_tree)
|
|||
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include)
|
||||
endmacro()
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
# use this for a subdir that builds a library
|
||||
# and supports find_package()
|
||||
#
|
||||
macro(xo_install_library2 target)
|
||||
install(
|
||||
TARGETS ${target}
|
||||
EXPORT ${target}Targets
|
||||
LIBRARY DESTINATION lib COMPONENT Runtime
|
||||
ARCHIVE DESTINATION lib COMPONENT Development
|
||||
RUNTIME DESTINATION bin COMPONENT Runtime
|
||||
PUBLIC_HEADER DESTINATION include COMPONENT Development
|
||||
BUNDLE DESTINATION bin COMPONENT Runtime
|
||||
)
|
||||
endmacro()
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
#
|
||||
# dependency on an xo library (including header-only libraries)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue