Python.h: No such file or directory
In your CMakeLists.txt, try adding the following: find_package(PythonLibs REQUIRED) include_directories(${PYTHON_INCLUDE_DIRS}) target_link_libraries(<your exe or lib> ${PYTHON_LIBRARIES}) For details of the commands, run: cmake –help-module FindPythonLibs cmake –help-command find_package cmake –help-command include_directories cmake –help-command target_link_libraries