-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
42 lines (34 loc) · 921 Bytes
/
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
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.5.1)
project(aruco_navi)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
file(GLOB sources ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp)
file(GLOB headers ${CMAKE_CURRENT_LIST_DIR}/src/*.h)
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(realsense2 REQUIRED)
find_package(OpenGL REQUIRED)
find_package(glfw3 REQUIRED)
# let cmake find OpenGL in GLVND preference
if (POLICY CMP0072)
cmake_policy (SET CMP0072 NEW)
endif(POLICY CMP0072)
add_executable(${PROJECT_NAME}
main.cpp
${sources}
)
target_include_directories(
${PROJECT_NAME}
PRIVATE
${realsense2_INCLUDE_DIR}
${OpenCV_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${OPENGL_INCLUDE_DIRS}
)
target_link_libraries(
${PROJECT_NAME}
${realsense2_LIBRARY}
${OpenCV_LIBS}
${OPENGL_LIBRARIES}
glfw
)