Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic-graph-python
Commits
b629adb3
Commit
b629adb3
authored
Jan 28, 2011
by
Florent Lamiraux
Committed by
Florent Lamiraux florent@laas.fr
Jan 28, 2011
Browse files
Fix --libs output of pkg-config and link boost and python with library.
parent
026af03b
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
b629adb3
...
...
@@ -43,6 +43,9 @@ SETUP_PROJECT()
# Trigger dependency to dynamic-graph.
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
(
include
)
ADD_SUBDIRECTORY
(
doc
)
...
...
src/CMakeLists.txt
View file @
b629adb3
...
...
@@ -42,6 +42,9 @@ ADD_LIBRARY(${LIBRARY_NAME}
SHARED
interpreter.cc
)
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
${
Boost_LIBRARIES
}
${
PYTHON_LIBRARY
}
)
SET_TARGET_PROPERTIES
(
${
LIBRARY_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
PKG_CONFIG_USE_DEPENDENCY
(
${
LIBRARY_NAME
}
dynamic-graph
)
...
...
@@ -52,8 +55,7 @@ SET(EXECUTABLE_NAME dg-python)
ADD_EXECUTABLE
(
${
EXECUTABLE_NAME
}
dg-python.cc
)
TARGET_LINK_LIBRARIES
(
${
EXECUTABLE_NAME
}
${
LIBRARY_NAME
}
${
Boost_LIBRARIES
}
${
PYTHON_LIBRARY
}
)
)
INSTALL
(
TARGETS dg-python DESTINATION bin
)
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment