generated from dleliuhin/cservice_template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
74 lines (49 loc) · 1.95 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#========================================================================================
project( lvx_to_las
LANGUAGES CXX )
#========================================================================================
cmake_minimum_required( VERSION 3.10 )
#========================================================================================
set( CMAKE_BUILD_TYPE "Debug" )
option( GUI FALSE )
if ( GUI )
add_definitions( -DGUI )
else()
# set( CMAKE_BUILD_TYPE "Release" )
endif()
#========================================================================================
option( V_DEVELOP FALSE )
if ( V_DEVELOP )
add_definitions( -DV_DEVELOP )
endif()
#========================================================================================
set( CMAKE_AUTOUIC ON )
set( CMAKE_AUTOMOC ON )
set( CMAKE_AUTORCC ON )
set( CMAKE_CXX_STANDARD 17 )
set( CMAKE_INCLUDE_CURRENT_DIR ON )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_EXPORT_COMPILE_COMMANDS ON )
#========================================================================================
include( ${CMAKE_CURRENT_SOURCE_DIR}/external/external.cmake )
#========================================================================================
include_directories( ${CMAKE_SOURCE_DIR} )
include( ${CMAKE_CURRENT_SOURCE_DIR}/cfg/cfg.cmake )
include( ${CMAKE_CURRENT_SOURCE_DIR}/src/src.cmake )
#========================================================================================
add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/external/Livox-SDK )
find_package( Qt5Core )
add_executable( ${PROJECT_NAME}
src/main.cpp
${CFG}
${SRC}
${EXTERNAL} )
target_link_libraries( ${PROJECT_NAME}
${VTK_LIBRARIES}
${PCL_LIBRARIES}
${V_LIBRARIES}
Qt5::Core
-ldl )
#========================================================================================
set( QT_QMAKE_EXECUTABLE )
#========================================================================================