-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
62 lines (54 loc) · 2.16 KB
/
CMakeLists.txt
File metadata and controls
62 lines (54 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
cmake_minimum_required(VERSION 3.0)
project(bprc_code)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
add_compile_options(-fopenmp)
find_package(pybind11 REQUIRED)
find_package(OpenMP REQUIRED)
include_directories(
include
$ENV{HOME}/gurobi1203/linux64/include/
)
pybind11_add_module(polyanya_wrapper
src/bind_polyanya_wrapper.cpp
src/polyanya_wrapper.cpp
$ENV{HOME}/polyanya/anyangle/polyanya/structs/mesh.cpp
$ENV{HOME}/polyanya/anyangle/polyanya/helpers/geometry.cpp
$ENV{HOME}/polyanya/anyangle/polyanya/helpers/timer.cpp
$ENV{HOME}/polyanya/anyangle/polyanya/helpers/scenario.cpp
$ENV{HOME}/polyanya/anyangle/polyanya/search/expansion.cpp
$ENV{HOME}/polyanya/anyangle/polyanya/search/searchinstance.cpp
)
target_include_directories(polyanya_wrapper PRIVATE
$ENV{HOME}/polyanya/anyangle/polyanya/structs
$ENV{HOME}/polyanya/anyangle/polyanya/helpers
$ENV{HOME}/polyanya/anyangle/polyanya/search
)
pybind11_add_module(raycast
src/raycast.cpp
src/bind_raycast.cpp
)
pybind11_add_module(mult_tw_pricing_solver
src/sft_linear.cpp
src/mult_tw_capacitated_pricing_solver_segments.cpp
src/mult_tw_capacitated_pricing_solver_no_discontinuity.cpp
src/mult_tw_capacitated_pricing_solver_f_val.cpp
src/min_dist_between_trajectories_solver.cpp
src/gurobi_socp_solver.cpp
src/label.cpp
src/bind_mult_tw_pricing_solver.cpp
)
target_include_directories(mult_tw_pricing_solver PRIVATE $ENV{HOME}/Clarabel.cpp/include)
target_link_directories(mult_tw_pricing_solver PRIVATE /$ENV{HOME}/gurobi1203/linux64/lib/ $ENV{HOME}/Clarabel.cpp/rust_wrapper/target/release/)
target_link_libraries(mult_tw_pricing_solver PRIVATE OpenMP::OpenMP_CXX gurobi120 clarabel_c)
install(TARGETS mult_tw_pricing_solver
DESTINATION "${PYTHON_INSTALL_DIR}/${PROJECT_NAME}"
)
pybind11_add_module(continuous_multi_agent_dag_dfs_no_obstacles
src/bind_continuous_multi_agent_dag_dfs_no_obstacles.cpp
)
target_link_libraries(continuous_multi_agent_dag_dfs_no_obstacles PRIVATE OpenMP::OpenMP_CXX)
install(TARGETS continuous_multi_agent_dag_dfs_no_obstacles
DESTINATION "${PYTHON_INSTALL_DIR}/${PROJECT_NAME}"
)