This commit is contained in:
HiepLM 2026-01-05 10:52:41 +07:00
parent bb14979b8a
commit a93304418d

View File

@ -104,7 +104,7 @@ endif()
# Installation (Standalone CMake only)
# ========================================================
if(NOT BUILDING_WITH_CATKIN)
# Export target trong mi trưng hp đ các target khác có th export và ph thuc vào nó
install(TARGETS robot_xmlrpcpp
EXPORT robot_xmlrpcpp-targets
ARCHIVE DESTINATION lib # Thư vin tĩnh .a
@ -113,6 +113,7 @@ if(NOT BUILDING_WITH_CATKIN)
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 vi Catkin, vn cn 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()