Skip to content
Snippets Groups Projects
Commit 23352ff5 authored by jcarpent's avatar jcarpent
Browse files

[CMake] Clean benchmark cmake

parent 47df7a1a
No related branches found
No related tags found
No related merge requests found
...@@ -29,11 +29,10 @@ IF(BUILD_BENCHMARK) ...@@ -29,11 +29,10 @@ IF(BUILD_BENCHMARK)
ELSE(BUILD_BENCHMARK) ELSE(BUILD_BENCHMARK)
ADD_EXECUTABLE(timings EXCLUDE_FROM_ALL timings.cpp) ADD_EXECUTABLE(timings EXCLUDE_FROM_ALL timings.cpp)
ENDIF(BUILD_BENCHMARK) ENDIF(BUILD_BENCHMARK)
PKG_CONFIG_USE_DEPENDENCY(timings eigen3) TARGET_LINK_LIBRARIES (timings ${PROJECT_NAME})
IF(URDFDOM_FOUND) IF(BUILD_PYTHON_INTERFACE)
PKG_CONFIG_USE_DEPENDENCY(timings urdfdom) TARGET_LINK_LIBRARIES(timings ${PYTHON_LIBRARIES})
ENDIF(URDFDOM_FOUND) ENDIF(BUILD_PYTHON_INTERFACE)
TARGET_LINK_LIBRARIES (timings ${Boost_LIBRARIES} ${PROJECT_NAME})
SET_TARGET_PROPERTIES (timings PROPERTIES COMPILE_DEFINITIONS PINOCCHIO_SOURCE_DIR="${${PROJECT_NAME}_SOURCE_DIR}") SET_TARGET_PROPERTIES (timings PROPERTIES COMPILE_DEFINITIONS PINOCCHIO_SOURCE_DIR="${${PROJECT_NAME}_SOURCE_DIR}")
# timings # timings
...@@ -44,8 +43,6 @@ ELSE(BUILD_BENCHMARK) ...@@ -44,8 +43,6 @@ ELSE(BUILD_BENCHMARK)
ADD_EXECUTABLE(timings-eigen EXCLUDE_FROM_ALL timings-eigen.cpp) ADD_EXECUTABLE(timings-eigen EXCLUDE_FROM_ALL timings-eigen.cpp)
ENDIF(BUILD_BENCHMARK) ENDIF(BUILD_BENCHMARK)
PKG_CONFIG_USE_DEPENDENCY(timings-eigen eigen3) PKG_CONFIG_USE_DEPENDENCY(timings-eigen eigen3)
TARGET_LINK_LIBRARIES (timings-eigen ${Boost_LIBRARIES} ${PROJECT_NAME})
SET_TARGET_PROPERTIES (timings-eigen PROPERTIES COMPILE_DEFINITIONS PINOCCHIO_SOURCE_DIR="${${PROJECT_NAME}_SOURCE_DIR}")
# geomTimings # geomTimings
# #
...@@ -55,10 +52,6 @@ IF(URDFDOM_FOUND AND HPP_FCL_FOUND) ...@@ -55,10 +52,6 @@ IF(URDFDOM_FOUND AND HPP_FCL_FOUND)
ELSE(BUILD_BENCHMARK) ELSE(BUILD_BENCHMARK)
ADD_EXECUTABLE(geomTimings EXCLUDE_FROM_ALL timings-geometry.cpp) ADD_EXECUTABLE(geomTimings EXCLUDE_FROM_ALL timings-geometry.cpp)
ENDIF(BUILD_BENCHMARK) ENDIF(BUILD_BENCHMARK)
PKG_CONFIG_USE_DEPENDENCY(geomTimings eigen3)
PKG_CONFIG_USE_DEPENDENCY(geomTimings urdfdom)
PKG_CONFIG_USE_DEPENDENCY(geomTimings assimp)
PKG_CONFIG_USE_DEPENDENCY(geomTimings hpp-fcl)
ADD_TEST_CFLAGS(geomTimings "-DWITH_HPP_FCL") ADD_TEST_CFLAGS(geomTimings "-DWITH_HPP_FCL")
IF(BUILD_TESTS_WITH_HPP) IF(BUILD_TESTS_WITH_HPP)
ADD_OPTIONAL_DEPENDENCY("hpp-model-urdf") ADD_OPTIONAL_DEPENDENCY("hpp-model-urdf")
...@@ -67,7 +60,11 @@ IF(URDFDOM_FOUND AND HPP_FCL_FOUND) ...@@ -67,7 +60,11 @@ IF(URDFDOM_FOUND AND HPP_FCL_FOUND)
ADD_TEST_CFLAGS(geomTimings "-DWITH_HPP_MODEL_URDF") ADD_TEST_CFLAGS(geomTimings "-DWITH_HPP_MODEL_URDF")
ENDIF(HPP_MODEL_URDF_FOUND) ENDIF(HPP_MODEL_URDF_FOUND)
ENDIF(BUILD_TESTS_WITH_HPP) ENDIF(BUILD_TESTS_WITH_HPP)
TARGET_LINK_LIBRARIES (geomTimings ${Boost_LIBRARIES} ${PROJECT_NAME}) TARGET_LINK_LIBRARIES (geomTimings ${PROJECT_NAME})
PKG_CONFIG_USE_DEPENDENCY(geomTimings hpp-fcl)
IF(BUILD_PYTHON_INTERFACE)
TARGET_LINK_LIBRARIES(geomTimings ${PYTHON_LIBRARIES})
ENDIF(BUILD_PYTHON_INTERFACE)
SET_TARGET_PROPERTIES (geomTimings PROPERTIES COMPILE_DEFINITIONS PINOCCHIO_SOURCE_DIR="${${PROJECT_NAME}_SOURCE_DIR}") SET_TARGET_PROPERTIES (geomTimings PROPERTIES COMPILE_DEFINITIONS PINOCCHIO_SOURCE_DIR="${${PROJECT_NAME}_SOURCE_DIR}")
ENDIF(URDFDOM_FOUND AND HPP_FCL_FOUND) ENDIF(URDFDOM_FOUND AND HPP_FCL_FOUND)
......
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