File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -9,18 +9,27 @@ project(
9
9
VERSION ${SKBUILD_PROJECT_VERSION}
10
10
LANGUAGES CXX)
11
11
12
+ #file(GLOB_RECURSE DIFFCP_BACKEND_LIBRARY_SOURCES "cpp/src/deriv.cpp" "cpp/src/cones.cpp" "cpp/src/lsqr.cpp" "cpp/src/linop.cpp")
13
+ #add_library(diffcp_backend STATIC ${DIFFCP_BACKEND_LIBRARY_SOURCES})
14
+ #target_include_directories(diffcp_backend PRIVATE cpp/include/)
15
+ #target_include_directories(diffcp_backend PRIVATE cpp/external/eigen/)
16
+
12
17
# Find the module development requirements (requires FindPython from 3.17 or
13
18
# scikit-build-core's built-in backport)
14
19
find_package (Python REQUIRED COMPONENTS Interpreter Development.Module)
15
20
find_package (pybind11 CONFIG REQUIRED)
21
+ #find_package(diffcp_backend CONFIG REQUIRED)
16
22
17
23
# Add a library using FindPython's tooling (pybind11 also provides a helper like
18
24
# this)
19
- python_add_library(_diffcp MODULE cpp/src/wrapper.cpp WITH_SOABI)
25
+ python_add_library(_diffcp MODULE cpp/src/wrapper.cpp cpp/src/deriv.cpp cpp/src/cones.cpp cpp/src/lsqr.cpp cpp/src/linop.cpp WITH_SOABI)
20
26
target_link_libraries (_diffcp PRIVATE pybind11::headers)
27
+ #target_link_libraries(_diffcp PRIVATE diffcp_backend)
21
28
target_include_directories (_diffcp PRIVATE cpp/external/eigen/)
22
29
target_include_directories (_diffcp PRIVATE cpp/include /)
23
30
31
+
32
+
24
33
# This is passing in the version as a define just as an example
25
34
target_compile_definitions (_diffcp PRIVATE VERSION_INFO=${PROJECT_VERSION} )
26
35
You can’t perform that action at this time.
0 commit comments