fix file cmake

This commit is contained in:
duongtd 2025-12-02 13:03:56 +07:00
parent ff4856ab15
commit a78034191c
5 changed files with 1 additions and 15 deletions

View File

@ -20,9 +20,6 @@ target_link_libraries(geometry_msgs INTERFACE std_msgs)
# --- 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 geometry_msgs install(TARGETS geometry_msgs
EXPORT geometry_msgs-targets EXPORT geometry_msgs-targets
ARCHIVE DESTINATION lib # Thư vin tĩnh .a
LIBRARY DESTINATION lib # Thư vin đng .so
RUNTIME DESTINATION bin # File thc thi (nếu )
INCLUDES DESTINATION include # Cài đt include INCLUDES DESTINATION include # Cài đt include
) )

View File

@ -20,9 +20,6 @@ target_link_libraries(map_msgs INTERFACE std_msgs)
# --- 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 map_msgs install(TARGETS map_msgs
EXPORT map_msgs-targets EXPORT map_msgs-targets
ARCHIVE DESTINATION lib # Thư vin tĩnh .a
LIBRARY DESTINATION lib # Thư vin đng .so
RUNTIME DESTINATION bin # File thc thi (nếu )
INCLUDES DESTINATION include # Cài đt include INCLUDES DESTINATION include # Cài đt include
) )

View File

@ -24,9 +24,6 @@ target_link_libraries(nav_msgs INTERFACE
# --- 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 nav_msgs install(TARGETS nav_msgs
EXPORT nav_msgs-targets EXPORT nav_msgs-targets
ARCHIVE DESTINATION lib # Thư vin tĩnh .a
LIBRARY DESTINATION lib # Thư vin đng .so
RUNTIME DESTINATION bin # File thc thi (nếu )
INCLUDES DESTINATION include # Cài đt include INCLUDES DESTINATION include # Cài đt include
) )

View File

@ -20,9 +20,6 @@ target_link_libraries(sensor_msgs INTERFACE std_msgs)
# --- 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 sensor_msgs install(TARGETS sensor_msgs
EXPORT sensor_msgs-targets EXPORT sensor_msgs-targets
ARCHIVE DESTINATION lib # Thư vin tĩnh .a
LIBRARY DESTINATION lib # Thư vin đng .so
RUNTIME DESTINATION bin # File thc thi (nếu )
INCLUDES DESTINATION include # Cài đt include INCLUDES DESTINATION include # Cài đt include
) )

View File

@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.10)
project(std_msgs) project(std_msgs)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_library(std_msgs INTERFACE) add_library(std_msgs INTERFACE)
@ -16,9 +17,6 @@ target_link_libraries(std_msgs INTERFACE robot_time)
# --- 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 std_msgs install(TARGETS std_msgs
EXPORT std_msgs-targets EXPORT std_msgs-targets
ARCHIVE DESTINATION lib # Thư vin tĩnh .a
LIBRARY DESTINATION lib # Thư vin đng .so
RUNTIME DESTINATION bin # File thc thi (nếu )
INCLUDES DESTINATION include # Cài đt include INCLUDES DESTINATION include # Cài đt include
) )