update
This commit is contained in:
parent
bb14979b8a
commit
a93304418d
|
|
@ -104,15 +104,16 @@ endif()
|
|||
# Installation (Standalone CMake only)
|
||||
# ========================================================
|
||||
|
||||
if(NOT BUILDING_WITH_CATKIN)
|
||||
install(TARGETS robot_xmlrpcpp
|
||||
EXPORT robot_xmlrpcpp-targets
|
||||
ARCHIVE DESTINATION lib # Thư viện tĩnh .a
|
||||
LIBRARY DESTINATION lib # Thư viện động .so
|
||||
RUNTIME DESTINATION bin # File thực thi (nếu có)
|
||||
INCLUDES DESTINATION include # Cài đặt include
|
||||
)
|
||||
# Export target trong mọi trường hợp để các target khác có thể export và phụ thuộc vào nó
|
||||
install(TARGETS robot_xmlrpcpp
|
||||
EXPORT robot_xmlrpcpp-targets
|
||||
ARCHIVE DESTINATION lib # Thư viện tĩnh .a
|
||||
LIBRARY DESTINATION lib # Thư viện động .so
|
||||
RUNTIME DESTINATION bin # File thực thi (nếu có)
|
||||
INCLUDES DESTINATION include # Cài đặt include
|
||||
)
|
||||
|
||||
if(NOT BUILDING_WITH_CATKIN)
|
||||
install(
|
||||
DIRECTORY include/
|
||||
DESTINATION include/
|
||||
|
|
@ -124,4 +125,11 @@ if(NOT BUILDING_WITH_CATKIN)
|
|||
NAMESPACE robot_xmlrpcpp::
|
||||
DESTINATION lib/cmake/robot_xmlrpcpp
|
||||
)
|
||||
else()
|
||||
# Khi build với Catkin, vẫn cần export để các target khác có thể export
|
||||
install(EXPORT robot_xmlrpcpp-targets
|
||||
FILE robot_xmlrpcpp-targets.cmake
|
||||
NAMESPACE robot_xmlrpcpp::
|
||||
DESTINATION lib/cmake/robot_xmlrpcpp
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user