build: extend xo_install_library4 + retire xo_install_library5P
This commit is contained in:
parent
4ccb726cca
commit
b2d7a04a09
1 changed files with 4 additions and 17 deletions
|
|
@ -404,6 +404,9 @@ macro(xo_install_library3 target projectTargets)
|
|||
endmacro()
|
||||
|
||||
macro(xo_install_library4 target projectTargets)
|
||||
string(REGEX REPLACE "^xo_" "" _nxo_target ${target})
|
||||
string(REGEX REPLACE "^xo-" "" _nxo_target ${_nxo_target})
|
||||
|
||||
install(
|
||||
TARGETS ${target}
|
||||
EXPORT ${projectTargets}
|
||||
|
|
@ -414,7 +417,7 @@ macro(xo_install_library4 target projectTargets)
|
|||
BUNDLE DESTINATION bin COMPONENT Runtime
|
||||
)
|
||||
|
||||
xo_install_include_tree3(include/xo/${target})
|
||||
xo_install_include_tree3(include/xo/${_nxo_target})
|
||||
|
||||
#xo_install_include_tree() -- use xo_install_include_tree3() separately
|
||||
endmacro()
|
||||
|
|
@ -431,22 +434,6 @@ macro(xo_install_library4_noincludes target projectTargets)
|
|||
)
|
||||
endmacro()
|
||||
|
||||
macro(xo_install_library5 target nxo_target projectTargets)
|
||||
install(
|
||||
TARGETS ${target}
|
||||
EXPORT ${projectTargets}
|
||||
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
|
||||
)
|
||||
|
||||
xo_install_include_tree3(include/xo/${nxo_target})
|
||||
|
||||
#xo_install_include_tree() -- use xo_install_include_tree3() separately
|
||||
endmacro()
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
|
||||
# for projectname=foo, require:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue