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
808c1722
Commit
808c1722
authored
Jul 30, 2018
by
Guilhem Saurel
Browse files
[CMake] fix python usage
parent
aa58bd7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
808c1722
...
...
@@ -21,6 +21,7 @@ INCLUDE(cmake/eigen.cmake)
INCLUDE
(
cmake/pthread.cmake
)
INCLUDE
(
cmake/cpack.cmake
)
include
(
cmake/header.cmake
)
include
(
cmake/python.cmake
)
SET
(
PROJECT_NAME dynamic-graph-python
)
SET
(
PROJECT_DESCRIPTION
"Dynamic graph library Python bindings"
)
...
...
@@ -39,6 +40,8 @@ SET(PKG_CONFIG_ADDITIONAL_VARIABLES plugindir ${PKG_CONFIG_ADDITIONAL_VARIABLES}
SETUP_PROJECT
()
FINDPYTHON
()
# Trigger dependency to dynamic-graph.
ADD_REQUIRED_DEPENDENCY
(
"dynamic-graph >= 3.0.0"
)
...
...
src/CMakeLists.txt
View file @
808c1722
...
...
@@ -16,14 +16,10 @@
#
# Python
#
set
(
Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0
)
INCLUDE
(
../cmake/python.cmake
)
FINDPYTHON
()
INCLUDE_DIRECTORIES
(
${
Boost_INCLUDE_DIRS
}
)
LINK_DIRECTORIES
(
${
Boost_LIBRARY_DIRS
}
${
PYTHON_LIBRARY_DIRS
}
)
INCLUDE
(
../cmake/python.cmake
)
#
#
# Python interpreter
...
...
@@ -36,6 +32,7 @@ ADD_LIBRARY(${LIBRARY_NAME}
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
${
PYTHON_LIBRARY
}
)
TARGET_LINK_BOOST_PYTHON
(
${
LIBRARY_NAME
}
)
IF
(
UNIX
)
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
${
Boost_LIBRARIES
}
)
...
...
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