-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
52 lines (45 loc) · 1.32 KB
/
CMakeLists.txt
File metadata and controls
52 lines (45 loc) · 1.32 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 3.21)
project(LogParser LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Find Qt 6
find_package(Qt6 REQUIRED COMPONENTS Widgets)
qt_standard_project_setup()
qt_add_executable(log_parser
src/main.cpp
src/app/MainWindow.cpp
src/app/MainWindow.h
src/app/PlusTabBar.cpp
src/app/PlusTabBar.h
src/app/TabsWidget.cpp
src/app/TabsWidget.h
src/ui/LogReaderTab.cpp
src/ui/LogReaderTab.h
src/core/LogTailer.cpp
src/core/LogTailer.h
src/ui/FirstNewRowDelegate.cpp
src/ui/FirstNewRowDelegate.h
src/core/LogParser.cpp
src/core/LogParser.h
src/core/LogTableModel.cpp
src/core/LogTableModel.h
src/core/MultiFilterProxy.cpp
src/core/MultiFilterProxy.h
src/ui/MessageDialog.cpp
src/ui/MessageDialog.h
)
# Link Qt Widgets to your executable
target_link_libraries(log_parser PRIVATE Qt6::Widgets)
# Add folder
target_include_directories(log_parser PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
# Install
install(TARGETS log_parser
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
# Generate deploy script and run it at install time. Uses windeployqt under the hood.
qt_generate_deploy_app_script(
TARGET log_parser
OUTPUT_SCRIPT deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${deploy_script})