Skip to content

Commit 2c37bc8

Browse files
committed
setup
1 parent 9b4a526 commit 2c37bc8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ find_package(pybind11 CONFIG REQUIRED)
1616

1717
# Add a library using FindPython's tooling (pybind11 also provides a helper like
1818
# this)
19+
add_subdirectory(matplotplusplus)
20+
target_link_libraries(_core PUBLIC matplot)
1921
python_add_library(_core MODULE src/main.cpp WITH_SOABI)
2022
target_link_libraries(_core PRIVATE pybind11::headers)
2123

@@ -24,3 +26,6 @@ target_compile_definitions(_core PRIVATE VERSION_INFO=${PROJECT_VERSION})
2426

2527
# The install directory is the output (wheel) directory
2628
install(TARGETS _core DESTINATION scikit_build_example)
29+
30+
31+

src/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ int add(int i, int j) {
77
return i + j;
88
}
99

10+
int testing(){
11+
return 880;
12+
}
13+
1014
namespace py = pybind11;
1115

1216
PYBIND11_MODULE(_core, m) {

0 commit comments

Comments
 (0)