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 ddb75d9 commit f94973bCopy full SHA for f94973b
.gitignore
@@ -1,3 +1,6 @@
1
+# Build directory
2
+build
3
+
4
# Prerequisites
5
*.d
6
CMakeLists.txt
@@ -0,0 +1,8 @@
+cmake_minimum_required(VERSION 2.8.12)
+project(python_cpp_example)
+SET(SOURCE_DIR "python_cpp_example")
+SET(SOURCES "${SOURCE_DIR}/main.cpp")
7
+add_subdirectory(pybind11)
8
+pybind11_add_module(python_cpp_example ${SOURCES} "${SOURCE_DIR}/bindings.cpp")
bindings.cpp renamed to python_cpp_example/bindings.cpp
@@ -1,4 +1,5 @@
#include <pybind11/pybind11.h>
+#include "main.hpp"
namespace py = pybind11;
0 commit comments