Skip to content
Snippets Groups Projects
Commit b629adb3 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Fix --libs output of pkg-config and link boost and python with library.

parent 026af03b
Branches
Tags
No related merge requests found
...@@ -43,6 +43,9 @@ SETUP_PROJECT() ...@@ -43,6 +43,9 @@ SETUP_PROJECT()
# Trigger dependency to dynamic-graph. # Trigger dependency to dynamic-graph.
ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 1.0") ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 1.0")
# Add dependency toward dynamic graph library in pkg-config file.
PKG_CONFIG_APPEND_LIBS("dynamic-graph-python")
ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(include) ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(doc) ADD_SUBDIRECTORY(doc)
... ...
......
...@@ -42,6 +42,9 @@ ADD_LIBRARY(${LIBRARY_NAME} ...@@ -42,6 +42,9 @@ ADD_LIBRARY(${LIBRARY_NAME}
SHARED SHARED
interpreter.cc) interpreter.cc)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME}
${Boost_LIBRARIES}
${PYTHON_LIBRARY})
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION}) SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} dynamic-graph) PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} dynamic-graph)
...@@ -52,8 +55,7 @@ SET(EXECUTABLE_NAME dg-python) ...@@ -52,8 +55,7 @@ SET(EXECUTABLE_NAME dg-python)
ADD_EXECUTABLE(${EXECUTABLE_NAME} dg-python.cc) ADD_EXECUTABLE(${EXECUTABLE_NAME} dg-python.cc)
TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME}
${LIBRARY_NAME} ${LIBRARY_NAME}
${Boost_LIBRARIES} )
${PYTHON_LIBRARY})
INSTALL(TARGETS dg-python DESTINATION bin) INSTALL(TARGETS dg-python DESTINATION bin)
# #
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment