-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
37 lines (31 loc) · 1.1 KB
/
CMakeLists.txt
File metadata and controls
37 lines (31 loc) · 1.1 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
cmake_minimum_required(VERSION 3.20.3 FATAL_ERROR)
project(LidarView)
# Add path to get all the needed modules used to config Lidarview
set(lidarview_cmake_dir "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
set(lvcore_cmake_dir "${CMAKE_CURRENT_SOURCE_DIR}/LVCore/CMake")
if (NOT IS_DIRECTORY "${lvcore_cmake_dir}")
message(FATAL_ERROR
"Failed to find the LVCore CMake directory. Did you forget to initialize the "
"submodule? (git submodule update --init --recursive)")
endif ()
list(APPEND CMAKE_MODULE_PATH
"${lidarview_cmake_dir}"
"${lvcore_cmake_dir}")
include(SetBranding)
include(LidarViewSupportMacros)
include(LidarViewOptions)
include(SetupLidarviewProject)
# Add plugins to be searched by default in LVCore CMakeLists.txt
set(lidarview_available_interpreters_plugins
VelodynePlugin
LeishenPlugin
LivoxPlugin
RobosensePlugin
HesaiPlugin)
set(lidarview_interpreters_plugin_directories "${CMAKE_CURRENT_SOURCE_DIR}/Plugins")
add_subdirectory(LVCore)
# Build lidarview application & QT module specific
add_subdirectory(Application)
if (BUILD_DOCUMENTATION)
add_subdirectory(Documentation)
endif ()