Skip to content

Commit

Permalink
added YARP_COMPILE_yarpActionsPlayer
Browse files Browse the repository at this point in the history
  • Loading branch information
randaz81 committed Feb 14, 2025
1 parent 55c7fab commit b58be93
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
5 changes: 5 additions & 0 deletions cmake/YarpFindDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,10 @@ yarp_dependent_option(
YARP_COMPILE_yarpdatadumper "Do you want to compile yarpdatadumper?" ON
"YARP_COMPILE_EXECUTABLES" OFF
)
yarp_dependent_option(
YARP_COMPILE_yarpActionsPlayer "Do you want to compile yarpActionsPlayer?" ON
"YARP_COMPILE_EXECUTABLES" OFF
)
yarp_dependent_option(
YARP_COMPILE_yarpview "Do you want to compile yarpview?" ON
"YARP_COMPILE_EXECUTABLES;YARP_COMPILE_GUIS;YARP_HAS_Qt5" OFF
Expand Down Expand Up @@ -682,6 +686,7 @@ yarp_print_feature(YARP_COMPILE_EXECUTABLES 0 "Compile executables")
yarp_print_feature(YARP_COMPILE_yarprobotinterface 1 "Compile yarprobotinterface${YARP_COMPILE_yarprobotinterface_disable_reason}")
yarp_print_feature(YARP_COMPILE_yarpmanager-console 1 "Compile YARP Module Manager (console)${YARP_COMPILE_yarpmanager-console_disable_reason}")
yarp_print_feature(YARP_COMPILE_yarpdatadumper 1 "Compile yarpdatadumper${YARP_COMPILE_yarpdatadumper_disable_reason}")
yarp_print_feature(YARP_COMPILE_yarpActionsPlayer 1 "Compile yarpActionsPlayer${YARP_COMPILE_yarpActionsPlayer_disable_reason}")
yarp_print_feature("YARP_COMPILE_yarpdatadumper AND YARP_HAS_OpenCV" 2 "yarpdatadumper video support")
yarp_print_feature(YARP_COMPILE_GUIS 1 "Compile GUIs${YARP_COMPILE_GUIS_disable_reason}")
yarp_print_feature(YARP_COMPILE_yarpview 2 "Compile yarpview${YARP_COMPILE_yarpview_disable_reason}")
Expand Down
32 changes: 17 additions & 15 deletions src/yarpActionsPlayer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
# SPDX-FileCopyrightText: 2024-2024 Istituto Italiano di Tecnologia (IIT)
# SPDX-License-Identifier: BSD-3-Clause

project(yarpActionsPlayer)
if(YARP_COMPILE_yarpActionsPlayer)
project(yarpActionsPlayer)

file(GLOB folder_source *.cpp)
file(GLOB folder_header *.h)
source_group("Source Files" FILES ${folder_source})
source_group("Header Files" FILES ${folder_header})
file(GLOB folder_source *.cpp)
file(GLOB folder_header *.h)
source_group("Source Files" FILES ${folder_source})
source_group("Header Files" FILES ${folder_header})

add_executable(yarpActionsPlayer ${folder_source} ${folder_header})
add_executable(yarpActionsPlayer ${folder_source} ${folder_header})

target_link_libraries(yarpActionsPlayer
PRIVATE
YARP::YARP_init
YARP::YARP_os
YARP::YARP_sig
YARP::YARP_dev
)
target_link_libraries(yarpActionsPlayer
PRIVATE
YARP::YARP_init
YARP::YARP_os
YARP::YARP_sig
YARP::YARP_dev
)

install(TARGETS yarpActionsPlayer COMPONENT utilities DESTINATION ${CMAKE_INSTALL_BINDIR})
install(TARGETS yarpActionsPlayer COMPONENT utilities DESTINATION ${CMAKE_INSTALL_BINDIR})

set_property(TARGET yarpActionsPlayer PROPERTY FOLDER "Command Line Tools")
set_property(TARGET yarpActionsPlayer PROPERTY FOLDER "Command Line Tools")
endif()

0 comments on commit b58be93

Please sign in to comment.