Skip to content

Commit f94973b

Browse files
committed
filled out CMakeLists
1 parent ddb75d9 commit f94973b

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Build directory
2+
build
3+
14
# Prerequisites
25
*.d
36

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
cmake_minimum_required(VERSION 2.8.12)
2+
project(python_cpp_example)
3+
4+
SET(SOURCE_DIR "python_cpp_example")
5+
SET(SOURCES "${SOURCE_DIR}/main.cpp")
6+
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <pybind11/pybind11.h>
2+
#include "main.hpp"
23

34
namespace py = pybind11;
45

0 commit comments

Comments
 (0)