Commit 43f6270f authored by jcarpent's avatar jcarpent
Browse files

[CMake] Correct linkage problems of executable targets

parent 7420050b
......@@ -22,14 +22,13 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(CXX_DISABLE_WERROR TRUE)
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/boost.cmake)
INCLUDE(cmake/eigen.cmake)
INCLUDE(cmake/cpack.cmake)
SET(PROJECT_NAME hpp-model)
SET(PROJECT_DESCRIPTION
"Implementation of hybrid geometric and dynamic humanoid robots"
)
SET(PROJECT_URL "")
SET(PROJECT_URL "https://github.com/humanoid-path-planner/hpp-model")
# Where to compile shared objects
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
......
......@@ -40,8 +40,10 @@ PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} eigen3)
IF (ASSIMP_FOUND)
ADD_EXECUTABLE(hpp-check-mesh-file
check_mesh_file.cc)
PKG_CONFIG_USE_DEPENDENCY(hpp-check-mesh-file assimp)
TARGET_LINK_LIBRARIES(hpp-check-mesh-file ${LIBRARY_NAME})
PKG_CONFIG_USE_DEPENDENCY(hpp-check-mesh-file assimp)
PKG_CONFIG_USE_DEPENDENCY(hpp-check-mesh-file hpp-fcl)
PKG_CONFIG_USE_DEPENDENCY(hpp-check-mesh-file hpp-util)
INSTALL(TARGETS hpp-check-mesh-file DESTINATION bin)
ENDIF (ASSIMP_FOUND)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment