Skip to content
Snippets Groups Projects
Commit 2e391772 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

fixed CMakeLists pinoccio as optional dependency for demos

parent 9e187bb8
No related branches found
No related tags found
1 merge request!18Release after RAL
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fext-numeric-literals") # necessary for files using boost set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fext-numeric-literals") # necessary for files using boost
FIND_PACKAGE(pinocchio REQUIRED) FIND_PACKAGE(pinocchio QUIET)
FIND_PACKAGE(multicontact-api REQUIRED) FIND_PACKAGE(multicontact-api QUIET)
# SYSTEM disables warnings from library headers if (pinocchio_FOUND)
include_directories( # SYSTEM disables warnings from library headers
SYSTEM ${PINOCCHIO_INCLUDE_DIRS} include_directories(
) SYSTEM ${PINOCCHIO_INCLUDE_DIRS}
)
add_library(mcapi_utils mcapi_utils.cpp)
add_library(mcapi_utils mcapi_utils.cpp)
# add_executable(mcapi_povcdl_estimation mcapi_povcdl_estimation.cpp)
# target_link_libraries(mcapi_povcdl_estimation # add_executable(mcapi_povcdl_estimation mcapi_povcdl_estimation.cpp)
# mcapi_utils # target_link_libraries(mcapi_povcdl_estimation
# ${wolfcore_LIBRARIES} # mcapi_utils
# ${wolfimu_LIBRARIES} # ${wolfcore_LIBRARIES}
# ${PLUGIN_NAME} # ${wolfimu_LIBRARIES}
# ${multicontact-api_LIBRARIES} # ${PLUGIN_NAME}
# ${pinocchio_LIBRARIES} # ${multicontact-api_LIBRARIES}
# ) # ${pinocchio_LIBRARIES}
# target_compile_definitions(mcapi_povcdl_estimation PRIVATE ${PINOCCHIO_CFLAGS_OTHER}) # )
# target_compile_definitions(mcapi_povcdl_estimation PRIVATE ${PINOCCHIO_CFLAGS_OTHER})
# add_executable(mcapi_pov_estimation mcapi_pov_estimation.cpp)
# target_link_libraries(mcapi_pov_estimation # add_executable(mcapi_pov_estimation mcapi_pov_estimation.cpp)
# mcapi_utils # target_link_libraries(mcapi_pov_estimation
# ${wolfcore_LIBRARIES} # mcapi_utils
# ${wolfimu_LIBRARIES} # ${wolfcore_LIBRARIES}
# ${PLUGIN_NAME} # ${wolfimu_LIBRARIES}
# ${multicontact-api_LIBRARIES} # ${PLUGIN_NAME}
# ${pinocchio_LIBRARIES} # ${multicontact-api_LIBRARIES}
# ) # ${pinocchio_LIBRARIES}
# target_compile_definitions(mcapi_pov_estimation PRIVATE ${PINOCCHIO_CFLAGS_OTHER}) # )
# target_compile_definitions(mcapi_pov_estimation PRIVATE ${PINOCCHIO_CFLAGS_OTHER})
add_executable(solo_real_povcdl_estimation solo_real_povcdl_estimation.cpp)
target_link_libraries(solo_real_povcdl_estimation add_executable(solo_real_povcdl_estimation solo_real_povcdl_estimation.cpp)
mcapi_utils target_link_libraries(solo_real_povcdl_estimation
${wolfcore_LIBRARIES} mcapi_utils
${wolfimu_LIBRARIES} ${wolfcore_LIBRARIES}
${PLUGIN_NAME} ${wolfimu_LIBRARIES}
${pinocchio_LIBRARIES} ${PLUGIN_NAME}
/usr/local/lib/libcnpy.so ${pinocchio_LIBRARIES}
z /usr/local/lib/libcnpy.so
) z
)
add_executable(solo_real_pov_estimation solo_real_pov_estimation.cpp)
target_link_libraries(solo_real_pov_estimation add_executable(solo_real_pov_estimation solo_real_pov_estimation.cpp)
mcapi_utils target_link_libraries(solo_real_pov_estimation
${wolfcore_LIBRARIES} mcapi_utils
${wolfimu_LIBRARIES} ${wolfcore_LIBRARIES}
${PLUGIN_NAME} ${wolfimu_LIBRARIES}
${pinocchio_LIBRARIES} ${PLUGIN_NAME}
/usr/local/lib/libcnpy.so ${pinocchio_LIBRARIES}
z /usr/local/lib/libcnpy.so
) z
)
add_executable(solo_mocap_imu solo_mocap_imu.cpp)
target_link_libraries(solo_mocap_imu add_executable(solo_mocap_imu solo_mocap_imu.cpp)
${wolfcore_LIBRARIES} target_link_libraries(solo_mocap_imu
${wolfimu_LIBRARIES} ${wolfcore_LIBRARIES}
${PLUGIN_NAME} ${wolfimu_LIBRARIES}
${pinocchio_LIBRARIES} ${PLUGIN_NAME}
/usr/local/lib/libcnpy.so ${pinocchio_LIBRARIES}
z /usr/local/lib/libcnpy.so
) z
)
endif()
# add_executable(test_cnpy test_cnpy.cpp) # add_executable(test_cnpy test_cnpy.cpp)
# target_link_libraries(test_cnpy # target_link_libraries(test_cnpy
......
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