We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a70736e commit 4421cccCopy full SHA for 4421ccc
CMakeLists.txt
@@ -12,6 +12,8 @@ find_package(catkin REQUIRED COMPONENTS
12
## System dependencies are found with CMake's conventions
13
find_package(Boost REQUIRED COMPONENTS python)
14
15
+find_package(PythonLibs REQUIRED) # sets ${PYTHON_INCLUDE_DIRS}
16
+
17
18
## Uncomment this if the package has a setup.py. This macro ensures
19
## modules and global scripts declared therein get installed
@@ -46,7 +48,7 @@ catkin_package(
46
48
include_directories(
47
49
${catkin_INCLUDE_DIRS}
50
${Boost_INCLUDE_DIRS}
- "/usr/include/python2.7" #TODO: let cmake find the path
51
+ ${PYTHON_INCLUDE_DIRS}
52
)
53
54
add_library(mycpplib SHARED
0 commit comments