diff --git a/cmake/xo_cxx.cmake b/cmake/xo_cxx.cmake index 13ee6b9a..64ec2822 100644 --- a/cmake/xo_cxx.cmake +++ b/cmake/xo_cxx.cmake @@ -184,6 +184,20 @@ macro(xo_install_library2 target) ) endmacro() +macro(xo_install_library3 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_tree() +endmacro() + # ---------------------------------------------------------------- # for projectname=foo, require: