This commit is contained in:
HiepLM 2025-12-29 18:14:15 +07:00
parent 5bdd606fff
commit 5575a50a32
23 changed files with 51 additions and 51 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10) cmake_minimum_required(VERSION 3.10)
project(xmlrpcpp) project(robot_xmlrpcpp)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
@ -9,7 +9,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic -fPIC) add_compile_options(-Wall -Wextra -Wpedantic -fPIC)
endif() endif()
add_library(xmlrpcpp add_library(robot_xmlrpcpp
src/XmlRpcClient.cpp src/XmlRpcClient.cpp
src/XmlRpcDispatch.cpp src/XmlRpcDispatch.cpp
src/XmlRpcServer.cpp src/XmlRpcServer.cpp
@ -21,15 +21,15 @@ add_library(xmlrpcpp
src/XmlRpcValue.cpp src/XmlRpcValue.cpp
) )
target_include_directories(xmlrpcpp target_include_directories(robot_xmlrpcpp
PUBLIC PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include/${PROJECT_NAME}> $<INSTALL_INTERFACE:include/${PROJECT_NAME}>
) )
# --- Cài đt thư vin vào h thng khi chy make install --- # --- Cài đt thư vin vào h thng khi chy make install ---
install(TARGETS xmlrpcpp install(TARGETS robot_xmlrpcpp
EXPORT xmlrpcpp-targets EXPORT robot_xmlrpcpp-targets
ARCHIVE DESTINATION lib # Thư vin tĩnh .a ARCHIVE DESTINATION lib # Thư vin tĩnh .a
LIBRARY DESTINATION lib # Thư vin đng .so LIBRARY DESTINATION lib # Thư vin đng .so
RUNTIME DESTINATION bin # File thc thi (nếu ) RUNTIME DESTINATION bin # File thc thi (nếu )
@ -41,13 +41,13 @@ install(
DESTINATION include/ DESTINATION include/
) )
# --- Xut export set xmlrpcpp-targets thành file CMake module --- # --- Xut export set robot_xmlrpcpp-targets thành file CMake module ---
# --- To file lib/cmake/xmlrpcpp/xmlrpcpp-targets.cmake --- # --- To file lib/cmake/robot_xmlrpcpp/robot_xmlrpcpp-targets.cmake ---
# --- File này cha cu hình giúp project khác có th dùng --- # --- File này cha cu hình giúp project khác có th dùng ---
# --- Find_package(xmlrpcpp REQUIRED) --- # --- Find_package(robot_xmlrpcpp REQUIRED) ---
# --- Target_link_libraries(my_app PRIVATE xmlrpcpp::xmlrpcpp) --- # --- Target_link_libraries(my_app PRIVATE robot_xmlrpcpp::robot_xmlrpcpp) ---
install(EXPORT xmlrpcpp-targets install(EXPORT robot_xmlrpcpp-targets
FILE xmlrpcpp-targets.cmake FILE robot_xmlrpcpp-targets.cmake
NAMESPACE xmlrpcpp:: NAMESPACE robot_xmlrpcpp::
DESTINATION lib/cmake/xmlrpcpp DESTINATION lib/cmake/robot_xmlrpcpp
) )

View File

@ -13,8 +13,8 @@
# include <string> # include <string>
#endif #endif
#include "xmlrpcpp/XmlRpcDispatch.h" #include "robot_xmlrpcpp/XmlRpcDispatch.h"
#include "xmlrpcpp/XmlRpcSource.h" #include "robot_xmlrpcpp/XmlRpcSource.h"
namespace robot { namespace robot {
namespace XmlRpc { namespace XmlRpc {

View File

@ -13,8 +13,8 @@
# include <string> # include <string>
#endif #endif
#include "xmlrpcpp/XmlRpcDispatch.h" #include "robot_xmlrpcpp/XmlRpcDispatch.h"
#include "xmlrpcpp/XmlRpcSource.h" #include "robot_xmlrpcpp/XmlRpcSource.h"
namespace robot { namespace robot {
namespace XmlRpc { namespace XmlRpc {

View File

@ -11,8 +11,8 @@
# include <string> # include <string>
#endif #endif
#include "xmlrpcpp/XmlRpcValue.h" #include "robot_xmlrpcpp/XmlRpcValue.h"
#include "xmlrpcpp/XmlRpcSource.h" #include "robot_xmlrpcpp/XmlRpcSource.h"
namespace robot { namespace robot {
namespace XmlRpc { namespace XmlRpc {

View File

@ -1,9 +1,9 @@
<package> <package>
<name>xmlrpcpp</name> <name>robot_xmlrpcpp</name>
<version>0.7.10</version> <version>0.7.10</version>
<description> <description>
xmlrpcpp is the second generation of the transform library, which lets robot_xmlrpcpp is the second generation of the transform library, which lets
the user keep track of multiple coordinate frames over time. xmlrpcpp the user keep track of multiple coordinate frames over time. robot_xmlrpcpp
maintains the relationship between coordinate frames in a tree maintains the relationship between coordinate frames in a tree
structure buffered in time, and lets the user transform points, structure buffered in time, and lets the user transform points,
vectors, etc between any two coordinate frames at any desired vectors, etc between any two coordinate frames at any desired
@ -15,7 +15,7 @@
<maintainer email="tfoote@osrfoundation.org">Tully Foote</maintainer> <maintainer email="tfoote@osrfoundation.org">Tully Foote</maintainer>
<license>BSD</license> <license>BSD</license>
<url type="website">http://www.ros.org/wiki/xmlrpcpp</url> <url type="website">http://www.ros.org/wiki/robot_xmlrpcpp</url>
<buildtool_depend version_gte="0.5.68">catkin</buildtool_depend> <buildtool_depend version_gte="0.5.68">catkin</buildtool_depend>

View File

@ -1,8 +1,8 @@
#include "xmlrpcpp/XmlRpcClient.h" #include "robot_xmlrpcpp/XmlRpcClient.h"
#include "xmlrpcpp/XmlRpcSocket.h" #include "robot_xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpc.h" #include "robot_xmlrpcpp/XmlRpc.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,7 +1,7 @@
#include "xmlrpcpp/XmlRpcDispatch.h" #include "robot_xmlrpcpp/XmlRpcDispatch.h"
#include "xmlrpcpp/XmlRpcSource.h" #include "robot_xmlrpcpp/XmlRpcSource.h"
#include "xmlrpcpp/XmlRpcUtil.h" #include "robot_xmlrpcpp/XmlRpcUtil.h"
#include <math.h> #include <math.h>
#include <sys/timeb.h> #include <sys/timeb.h>

View File

@ -1,10 +1,10 @@
#include "xmlrpcpp/XmlRpcServer.h" #include "robot_xmlrpcpp/XmlRpcServer.h"
#include "xmlrpcpp/XmlRpcServerConnection.h" #include "robot_xmlrpcpp/XmlRpcServerConnection.h"
#include "xmlrpcpp/XmlRpcServerMethod.h" #include "robot_xmlrpcpp/XmlRpcServerMethod.h"
#include "xmlrpcpp/XmlRpcSocket.h" #include "robot_xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpcUtil.h" #include "robot_xmlrpcpp/XmlRpcUtil.h"
#include "xmlrpcpp/XmlRpcException.h" #include "robot_xmlrpcpp/XmlRpcException.h"
using namespace robot::XmlRpc; using namespace robot::XmlRpc;

View File

@ -1,8 +1,8 @@
#include "xmlrpcpp/XmlRpcServerConnection.h" #include "robot_xmlrpcpp/XmlRpcServerConnection.h"
#include "xmlrpcpp/XmlRpcSocket.h" #include "robot_xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpc.h" #include "robot_xmlrpcpp/XmlRpc.h"
#ifndef MAKEDEPEND #ifndef MAKEDEPEND
# include <stdio.h> # include <stdio.h>
# include <stdlib.h> # include <stdlib.h>

View File

@ -1,6 +1,6 @@
#include "xmlrpcpp/XmlRpcServerMethod.h" #include "robot_xmlrpcpp/XmlRpcServerMethod.h"
#include "xmlrpcpp/XmlRpcServer.h" #include "robot_xmlrpcpp/XmlRpcServer.h"
namespace robot { namespace robot {
namespace XmlRpc { namespace XmlRpc {

View File

@ -1,6 +1,6 @@
#include "xmlrpcpp/XmlRpcSocket.h" #include "robot_xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpcUtil.h" #include "robot_xmlrpcpp/XmlRpcUtil.h"
#ifndef MAKEDEPEND #ifndef MAKEDEPEND

View File

@ -1,7 +1,7 @@
#include "xmlrpcpp/XmlRpcSource.h" #include "robot_xmlrpcpp/XmlRpcSource.h"
#include "xmlrpcpp/XmlRpcSocket.h" #include "robot_xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpcUtil.h" #include "robot_xmlrpcpp/XmlRpcUtil.h"
namespace robot { namespace robot {
namespace XmlRpc { namespace XmlRpc {

View File

@ -1,5 +1,5 @@
#include "xmlrpcpp/XmlRpcUtil.h" #include "robot_xmlrpcpp/XmlRpcUtil.h"
#ifndef MAKEDEPEND #ifndef MAKEDEPEND
# include <ctype.h> # include <ctype.h>
@ -9,7 +9,7 @@
# include <string.h> # include <string.h>
#endif #endif
#include "xmlrpcpp/XmlRpc.h" #include "robot_xmlrpcpp/XmlRpc.h"
using namespace robot::XmlRpc; using namespace robot::XmlRpc;

View File

@ -1,8 +1,8 @@
#include "xmlrpcpp/XmlRpcValue.h" #include "robot_xmlrpcpp/XmlRpcValue.h"
#include "xmlrpcpp/XmlRpcException.h" #include "robot_xmlrpcpp/XmlRpcException.h"
#include "xmlrpcpp/XmlRpcUtil.h" #include "robot_xmlrpcpp/XmlRpcUtil.h"
#include "xmlrpcpp/base64.h" #include "robot_xmlrpcpp/base64.h"
#ifndef MAKEDEPEND #ifndef MAKEDEPEND
# include <iostream> # include <iostream>