Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
[CMake] Correct linkage problems of executable targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Jul 7, 2016
1 parent 7420050 commit 43f6270
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 43f6270

Please sign in to comment.