Skip to content

Commit

Permalink
build: temporarily disable target that depends on Musen
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Nov 7, 2023
1 parent b5082eb commit d2a3cb7
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ find_package(kansei_interfaces REQUIRED)
find_package(keisan REQUIRED)
find_package(rclcpp REQUIRED)
find_package(tachimawari_interfaces REQUIRED)
find_package(musen REQUIRED)

# TODO: Enable me later.
# find_package(musen REQUIRED)

find_package(tf2_ros REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
Expand Down Expand Up @@ -53,7 +56,8 @@ add_library(${PROJECT_NAME} SHARED
"src/${PROJECT_NAME}/joint/utils/middleware.cpp"
"src/${PROJECT_NAME}/joint/utils/node_control.cpp"
"src/${PROJECT_NAME}/node/tachimawari_node.cpp"
"src/${PROJECT_NAME}/node/rviz_server_node.cpp"
# TODO: Enable me later.
# "src/${PROJECT_NAME}/node/rviz_server_node.cpp"
"src/${PROJECT_NAME}/node/rviz_client_node.cpp")

target_include_directories(${PROJECT_NAME} PUBLIC
Expand All @@ -66,7 +70,6 @@ ament_target_dependencies(${PROJECT_NAME}
keisan
rclcpp
tachimawari_interfaces
musen
tf2_ros
sensor_msgs
geometry_msgs)
Expand Down Expand Up @@ -120,12 +123,13 @@ target_include_directories(read_joints PUBLIC
$<INSTALL_INTERFACE:include>)
target_link_libraries(read_joints ${PROJECT_NAME})

add_executable(rviz_server "src/rviz_server_main.cpp")
target_include_directories(rviz_server PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
target_link_libraries(${PROJECT_NAME} musen)
target_link_libraries(rviz_server ${PROJECT_NAME})
# TODO: Enable me later.
# add_executable(rviz_server "src/rviz_server_main.cpp")
# target_include_directories(rviz_server PUBLIC
# $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
# $<INSTALL_INTERFACE:include>)
# target_link_libraries(${PROJECT_NAME} musen)
# target_link_libraries(rviz_server ${PROJECT_NAME})

add_executable(rviz_client "src/rviz_client_main.cpp")
target_include_directories(rviz_client PUBLIC
Expand All @@ -139,7 +143,8 @@ install(TARGETS
main
read_buttons
read_joints
rviz_server
# TODO: Enable me later.
# rviz_server
rviz_client
DESTINATION lib/${PROJECT_NAME})

Expand Down

0 comments on commit d2a3cb7

Please sign in to comment.