Skip to content
Snippets Groups Projects
Commit 5956c1c2 authored by Peter Kaiser's avatar Peter Kaiser
Browse files

CMake: Added Simox dependency in applications ForceTorqueObserver and ForceTorqueUnitSimulation

parent 6bffe911
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,15 @@ armarx_build_if(Eigen3_FOUND "Eigen3 not available")
find_package(Simox QUIET)
armarx_build_if(Simox_FOUND "Simox-VirtualRobot not available")
include_directories(${Eigen3_INCLUDE_DIR})
if(Eigen3_FOUND AND Simox_FOUND)
include_directories(${Eigen3_INCLUDE_DIR})
include_directories(${Simox_INCLUDE_DIRS})
endif()
set(COMPONENT_LIBS RobotAPIUnits RobotAPICore RobotAPIInterfaces ArmarXInterfaces ArmarXCore ArmarXCoreObservers RobotAPIRemoteRobot)
if(ARMARX_BUILD)
set(COMPONENT_LIBS RobotAPIUnits RobotAPICore RobotAPIInterfaces ArmarXInterfaces ArmarXCore ArmarXCoreObservers RobotAPIRemoteRobot)
set(SOURCES main.cpp ForceTorqueObserverApp.h)
set(SOURCES main.cpp ForceTorqueObserverApp.h)
armarx_add_component_executable("${SOURCES}")
armarx_add_component_executable("${SOURCES}")
endif()
armarx_component_set_name(ForceTorqueUnitSimulation)
include_directories(${Eigen3_INCLUDE_DIR})
set(COMPONENT_LIBS ArmarXInterfaces ArmarXCore RobotAPIUnits)
set(SOURCES main.cpp ForceTorqueUnitSimulationApp.h)
find_package(Eigen3 QUIET)
armarx_build_if(Simox_FOUND "Eigen3 not available")
find_package(Simox QUIET)
armarx_build_if(Simox_FOUND "Simox-VirtualRobot not available")
if(Eigen3_FOUND AND Simox_FOUND)
include_directories(${Eigen3_INCLUDE_DIR})
include_directories(${Simox_INCLUDE_DIRS})
endif()
if(ARMARX_BUILD)
set(COMPONENT_LIBS ArmarXInterfaces ArmarXCore RobotAPIUnits)
set(SOURCES main.cpp ForceTorqueUnitSimulationApp.h)
armarx_add_component_executable("${SOURCES}")
armarx_add_component_executable("${SOURCES}")
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment