File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ find_package(pybind11 CONFIG REQUIRED)
16
16
17
17
# Add a library using FindPython's tooling (pybind11 also provides a helper like
18
18
# this)
19
+ add_subdirectory (matplotplusplus)
20
+ target_link_libraries (_core PUBLIC matplot)
19
21
python_add_library(_core MODULE src/main.cpp WITH_SOABI)
20
22
target_link_libraries (_core PRIVATE pybind11::headers)
21
23
@@ -24,3 +26,6 @@ target_compile_definitions(_core PRIVATE VERSION_INFO=${PROJECT_VERSION})
24
26
25
27
# The install directory is the output (wheel) directory
26
28
install (TARGETS _core DESTINATION scikit_build_example)
29
+
30
+
31
+
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ int add(int i, int j) {
7
7
return i + j;
8
8
}
9
9
10
+ int testing (){
11
+ return 880 ;
12
+ }
13
+
10
14
namespace py = pybind11;
11
15
12
16
PYBIND11_MODULE (_core, m) {
You can’t perform that action at this time.
0 commit comments