File tree Expand file tree Collapse file tree 4 files changed +3026
-4
lines changed Expand file tree Collapse file tree 4 files changed +3026
-4
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,20 @@ option(CDDP-CPP_BUILD_TESTS
15
15
16
16
# EIGEN
17
17
find_package (Eigen3 REQUIRED )
18
+ set (Python_EXECUTABLE /usr/bin/python3.10 ) # Or the path to your desired Python interpreter
19
+ execute_process ( # Find the NumPy include directory
20
+ COMMAND "${Python_EXECUTABLE} " -c "import numpy; print(numpy.get_include())"
21
+ OUTPUT_VARIABLE NUMPY_INCLUDE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE
22
+ )
23
+ find_package (Python3 3.10 EXACT COMPONENTS Interpreter Development NumPy REQUIRED )
18
24
19
25
# Enable FetchContent for downloading dependencies
20
26
include (FetchContent )
27
+ include_directories (
28
+ ${CMAKE_CURRENT_SOURCE_DIR} /include
29
+ ${Python3_INCLUDE_DIRS}
30
+ ${NUMPY_INCLUDE_DIR}
31
+ )
21
32
22
33
# ABSL
23
34
if (NOT TARGET absl::strings OR NOT TARGET absl::status OR NOT TARGET absl::span )
You can’t perform that action at this time.
0 commit comments