forked from HSarham/automatic-ar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (27 loc) · 943 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
project(automatic-ar)
cmake_minimum_required(VERSION 3.1)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_EXTENSIONS ON)
#set(CMAKE_PREFIX_PATH "~/local/") #uncomment if you have local libraries compiled in ~/local/
find_package(OpenCV 4.2.0 REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
find_package(OpenMP)
if(OpenMP_FOUND)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
find_package(PCL)
if(PCL_FOUND)
INCLUDE_DIRECTORIES(${PCL_INCLUDE_DIRS})
set(pcl_libs "${PCL_VISUALIZATION_LIBRARIES}")
add_definitions(-DPCL)
endif(PCL_FOUND)
include_directories(libs)
include_directories(3rdparty/eigen3)
include_directories(3rdparty/aruco)
include_directories(3rdparty/sgl/src)
add_subdirectory(3rdparty/sgl)
add_subdirectory(3rdparty/aruco/aruco)
add_subdirectory(libs)
add_subdirectory(apps)