Skip to content

Commit 9ff2959

Browse files
committed
Adds diffcp
1 parent c49ce71 commit 9ff2959

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

CMakeLists.txt

+10-1
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,27 @@ project(
99
VERSION ${SKBUILD_PROJECT_VERSION}
1010
LANGUAGES CXX)
1111

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+
1217
# Find the module development requirements (requires FindPython from 3.17 or
1318
# scikit-build-core's built-in backport)
1419
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
1520
find_package(pybind11 CONFIG REQUIRED)
21+
#find_package(diffcp_backend CONFIG REQUIRED)
1622

1723
# Add a library using FindPython's tooling (pybind11 also provides a helper like
1824
# 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)
2026
target_link_libraries(_diffcp PRIVATE pybind11::headers)
27+
#target_link_libraries(_diffcp PRIVATE diffcp_backend)
2128
target_include_directories(_diffcp PRIVATE cpp/external/eigen/)
2229
target_include_directories(_diffcp PRIVATE cpp/include/)
2330

31+
32+
2433
# This is passing in the version as a define just as an example
2534
target_compile_definitions(_diffcp PRIVATE VERSION_INFO=${PROJECT_VERSION})
2635

0 commit comments

Comments
 (0)