-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
77 lines (62 loc) · 1.72 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
75
cmake_minimum_required(VERSION 3.5)
project(replayTool LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_PREFIX_PATH "/opt/Qt/5.15.2/gcc_64")
set(Qt5_DIR "${CMAKE_PREFIX_PATH}/lib/cmake/Qt5")
set(Qt5Widgets_DIR "${CMAKE_PREFIX_PATH}/lib/cmake/Qt5Widgets")
set(Qt5Charts_DIR "${CMAKE_PREFIX_PATH}/lib/cmake/QtCharts")
set(Qt5Core_DIR "${CMAKE_PREFIX_PATH}/lib/cmake/QtCort")
set(Qt5Gui_DIR "${CMAKE_PREFIX_PATH}/lib/cmake/QtGui")
set(Qt5PrintSupport_DIR "${CMAKE_PREFIX_PATH}/lib/cmake/QtPrintSupport")
find_package(Qt5 COMPONENTS Widgets REQUIRED)
find_package(Qt5 COMPONENTS Charts REQUIRED)
find_package(Qt5 COMPONENTS Core REQUIRED)
find_package(Qt5 COMPONENTS Gui REQUIRED)
find_package(Qt5 COMPONENTS PrintSupport REQUIRED)
#find_package(PROJ REQUIRED CONFIG)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/install
# ${CMAKE_CURRENT_SOURCE_DIR}/include
)
#aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src SOURCE_SRC)
#list (APPEND REPLAYTOOL_SRC
# ${SOURCE_SRC}
# src/widget.ui
# include/chartview.h
# include/widget.h
# include/obj.h
# include/convert.h
# include/qcustomplot.h
#)
#ADD_EXECUTABLE(${PROJECT_NAME} ${REPLAYTOOL_SRC})
add_executable(${PROJECT_NAME}
main.cpp
widget.cpp
widget.ui
chartview.cpp
convert.cpp
qcustomplot.cpp
MultiSelectComboBox.cpp
# qcustomtooltip.cpp
# qcustomtooltip.h
MultiSelectComboBox.h
qcustomplot.h
widget.h
chartview.h
convert.h
obj.h
# /home/lei/third_libs/PROJ//include
)
target_link_libraries(${PROJECT_NAME} PRIVATE
Qt5::Widgets
Qt5::Charts
Qt5::Core
Qt5::Gui
Qt5::PrintSupport
${CMAKE_CURRENT_SOURCE_DIR}/install/lib/libproj.so
)