-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(imu) | ||
if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION) | ||
cmake_minimum_required(VERSION 3.5) | ||
endif() | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
martinaxgloria
Author
Contributor
|
||
|
||
add_definitions(-D_USE_MATH_DEFINES) | ||
|
||
include_directories(${CMAKE_SOURCE_DIR} | ||
${RobotTestingFramework_INCLUDE_DIRS}) | ||
|
||
robottestingframework_add_plugin(${PROJECT_NAME} HEADERS ${PROJECT_NAME}.h | ||
SOURCES ${PROJECT_NAME}.cpp) | ||
robottestingframework_add_plugin(imu HEADERS imu.h | ||
SOURCES imu.cpp) | ||
|
||
# add required libraries | ||
target_link_libraries(${PROJECT_NAME} RobotTestingFramework::RTF | ||
target_link_libraries(imu RobotTestingFramework::RTF | ||
RobotTestingFramework::RTF_dll | ||
YARP::YARP_robottestingframework | ||
iDynTree::idyntree-high-level | ||
iDynTree::idyntree-estimation) | ||
# set the installation options | ||
install(TARGETS ${PROJECT_NAME} | ||
EXPORT ${PROJECT_NAME} | ||
install(TARGETS imu | ||
EXPORT imu | ||
COMPONENT runtime | ||
LIBRARY DESTINATION lib) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
robot ${robotname} | ||
model /path/to/your/robot/model.urdf | ||
model model.urdf | ||
port /${robotname}/head/inertials | ||
sensor head_imu_0 | ||
frame head_imu_0 |
I think we can remove this. There is no
project
andfind_package
call in this script, so thisCMakeLists.txt
will never be called on its own, and always added viaadd_subdirectory
by an higher folder, so it is not really useful to have this code.