Skip to content

Commit b8fee60

Browse files
update for plots
1 parent ba4bad7 commit b8fee60

File tree

4 files changed

+3026
-4
lines changed

4 files changed

+3026
-4
lines changed

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,20 @@ option(CDDP-CPP_BUILD_TESTS
1515

1616
# EIGEN
1717
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)
1824

1925
# Enable FetchContent for downloading dependencies
2026
include(FetchContent)
27+
include_directories(
28+
${CMAKE_CURRENT_SOURCE_DIR}/include
29+
${Python3_INCLUDE_DIRS}
30+
${NUMPY_INCLUDE_DIR}
31+
)
2132

2233
# ABSL
2334
if (NOT TARGET absl::strings OR NOT TARGET absl::status OR NOT TARGET absl::span)

0 commit comments

Comments
 (0)