-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
36 lines (30 loc) · 1.05 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.4...3.18)
project(orbslam3)
LIST(APPEND CMAKE_MODULE_PATH
${PROJECT_SOURCE_DIR}/cmake
)
add_subdirectory(third_party/pybind11)
add_subdirectory(third_party/ORB_SLAM3)
pybind11_add_module(orbslam3
src/ORBSLAM3Wrapper.cpp
src/NDArrayConverter.cpp
)
target_link_libraries(orbslam3
PRIVATE
ORB_SLAM3
)
target_compile_definitions(orbslam3
PRIVATE
VERSION_INFO=${EXAMPLE_VERSION_INFO}
)
target_include_directories(orbslam3
PUBLIC
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/third_party>
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/third_party/ORB_SLAM3>
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/third_party/ORB_SLAM3/include>
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/third_party/ORB_SLAM3/include/CameraModels>
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/third_party/ORB_SLAM3/Thirdparty/g2o/g2o>
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/third_party/ORB_SLAM3/Thirdparty/DBoW2/DBoW2>
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/third_party/ORB_SLAM3/Thirdparty/Sophus/sophus>
)