From 3c1b4beb57e2ae03d6257a313f87b834ea11f729 Mon Sep 17 00:00:00 2001 From: Francois Bleibel <fbleibel@gmail.com> Date: Tue, 13 Jul 2010 13:52:57 +0900 Subject: [PATCH] Corrected library name in CMakeLists --- CMakeLists.txt | 1 + src/CMakeLists.txt | 2 +- unitTesting/CMakeLists.txt | 14 +++++++++----- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7230848..d35d8e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,6 +62,7 @@ PKG_CHECK_MODULES(_hrp2Dynamics ${_hrp2Dynamics_REQUIRED}) IF(${_hrp2Dynamics_FOUND}) LIST(APPEND PACKAGE_REQUIREMENTS ${_hrp2Dynamics_REQUIRED}) # MESSAGE(FATAL_ERROR "Check that package hrp2Dynamics is installed in a directory pointed out by PKG_CONFIG_PATH.") +MESSAGE("h2D libs are '${_hrp2Dynamics_LIBRARIES}'") ENDIF(${_hrp2Dynamics_FOUND}) # --- HRP2-10-Optimized --------------------------------------- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 99c38ec..e1e90b9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -109,7 +109,7 @@ FOREACH(lib ${libs}) TARGET_LINK_LIBRARIES(${lib} ${DYNAMIC_GRAPH_LIBRARIES}) TARGET_LINK_LIBRARIES(${lib} ${SOT_CORE_LIBRARIES}) TARGET_LINK_LIBRARIES(${lib} ${MATRIXABSTRACTLAYER_LIBRARIES}) - TARGET_LINK_LIBRARIES(${lib} ${HRP2DYNAMICS_LIBRARIES}) + TARGET_LINK_LIBRARIES(${lib} ${_HRP2DYNAMICS_LIBRARIES}) TARGET_LINK_LIBRARIES(${lib} ${DYNAMICSJRLJAPAN_LIBRARIES}) ENDIF(UNIX) diff --git a/unitTesting/CMakeLists.txt b/unitTesting/CMakeLists.txt index 7c9d069..6e5f9b2 100644 --- a/unitTesting/CMakeLists.txt +++ b/unitTesting/CMakeLists.txt @@ -18,6 +18,7 @@ ADD_EXECUTABLE(${EXECUTABLE_NAME} INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include) LINK_DIRECTORIES(${${PROJECT_NAME}_BINARY_DIR}/src) + TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} zmpreffromcom force-compensation @@ -28,17 +29,20 @@ TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} angle-estimator waist-attitude-from-sensor ) - -IF(${DYNAMICSJRLJAPAN_FOUND} AND ${_hrp2Dynamics_FOUND}) - TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} dynamic dynamic-hrp2) -ENDIF(${DYNAMICSJRLJAPAN_FOUND} AND ${_hrp2Dynamics_FOUND}) IF (UNIX) TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} ${DYNAMIC_GRAPH_LIBRARIES}) TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} ${SOT_CORE_LIBRARIES}) TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} ${MATRIXABSTRACTLAYER_LIBRARIES}) - TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} ${HRP2DYNAMICS_LIBRARIES}) + TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} ${_hrp2Dynamics_LIBRARIES}) TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} ${DYNAMICSJRLJAPAN_LIBRARIES}) + + IF(${DYNAMICSJRLJAPAN_FOUND}) + TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} dynamic) + IF(${_hrp2Dynamics_FOUND}) + TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} dynamic-hrp2) + ENDIF(${_hrp2Dynamics_FOUND}) + ENDIF(${DYNAMICSJRLJAPAN_FOUND}) ENDIF(UNIX) IF(WIN32) -- GitLab