-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
41 lines (31 loc) · 1019 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
cmake_minimum_required(VERSION 3.5)
project(faster_lio)
set(DEFAULT_BUILD_TYPE "Release")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -fexceptions -g -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS}")
set(ENABLE_BACKWARD true)
if (ENABLE_BACKWARD)
add_definitions(-D USE_BACKWARD)
set(LIBDW "dw")
else ()
set(LIBDW "")
endif ()
add_definitions(-DROOT_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/\")
add_subdirectory(thirdparty/livox_ros_driver)
include(cmake/packages.cmake)
#definitions
add_definitions(-DROOT_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/\")
# options
option(WITH_IVOX_NODE_TYPE_PHC "Use PHC instead of default ivox node" OFF)
if (WITH_IVOX_NODE_TYPE_PHC)
message("USING_IVOX_NODE_TYPE_PHC")
add_definitions(-DIVOX_NODE_TYPE_PHC)
else ()
message("USING_IVOX_NODE_TYPE_DEFAULT")
endif ()
add_subdirectory(src)
add_subdirectory(app)