You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set(GUROBI_ROOT /usr/local/lib/gurobi1201/linux64)# FIXME: Change this to your local gurobi installation directory
44
46
45
47
# LibTorch Configuration
48
+
# If you want to install LibTorch, please follow the instructions at:
49
+
# https://pytorch.org/
50
+
# $ sudo cp -r libtorch /usr/local/lib/
46
51
option(CDDP_CPP_TORCH "Whether to use LibTorch"OFF)
47
52
option(CDDP_CPP_TORCH_GPU "Whether to use GPU support in LibTorch"OFF)
48
-
set(LIBTORCH_DIR $ENV{HOME}/.local/lib/libtorch CACHEPATH"Path to local LibTorch installation") # FIXME: Change this to your local LibTorch installation directory
49
-
50
-
# Python Configuration
51
-
set(Python_EXECUTABLE /usr/bin/python3.10) # Or the path to your desired Python interpreter
52
-
execute_process( # Find the NumPy include directory
set(LIBTORCH_DIR /usr/local/lib/libtorch CACHEPATH"Path to local LibTorch installation") # FIXME: Change this to your local LibTorch installation directory
56
54
57
55
# Find packages
58
56
find_package(Eigen3 REQUIRED)
59
-
find_package(Python3 3.10 EXACT COMPONENTS Interpreter Development NumPy REQUIRED)
60
57
61
58
if (CDDP_CPP_CASADI)
62
59
# Assuming that CasADi is installed in /usr/local/include/casadi by:
Although the library automatically finds and installs the following dependencies via [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html), if you do not have ones, here is how you can install on your own.
@@ -187,7 +213,7 @@ This project uses the following open-source libraries:
0 commit comments