-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
95 lines (82 loc) · 2.28 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
cmake_minimum_required(VERSION 3.16)
project(Fernanda VERSION 0.0.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 REQUIRED COMPONENTS Network PrintSupport WebChannel WebEngineCore WebEngineWidgets Widgets Xml)
qt_standard_project_setup()
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
include(FetchContent)
FetchContent_Declare(bit7z
GIT_REPOSITORY https://github.com/rikyoz/bit7z.git
GIT_TAG v4.0.0-rc
)
FetchContent_MakeAvailable(bit7z)
qt_add_executable(Fernanda
source/Archiver.h
source/ColorBar.h
source/Delegate.h
source/Dom.h
source/Editor.h
source/Icon.h
source/Index.h
source/Indicator.h
source/Io.h
source/KeyFilter.h
source/Layout.h
source/MainWindow.h
source/Pane.h
source/Path.h
source/PlainTextEdit.h
source/Popup.h
source/Preview.h
source/Resource.h
source/Sample.h
source/Splitter.h
source/SplitterHandle.h
source/StartCop.h
source/StatusBarButton.h
source/Story.h
source/Style.h
source/Text.h
source/Tool.h
source/UserData.h
source/Version.h
source/Archiver.cpp
source/ColorBar.cpp
source/Dom.cpp
source/Editor.cpp
source/Indicator.cpp
source/KeyFilter.cpp
source/Main.cpp
source/MainWindow.cpp
source/Pane.cpp
source/Path.cpp
source/PlainTextEdit.cpp
source/Popup.cpp
source/Preview.cpp
source/Splitter.cpp
source/Story.cpp
source/Text.cpp
source/Tool.cpp
source/UserData.cpp
resources/fonts.qrc
resources/icons.qrc
resources/lib.qrc
resources/preview.qrc
resources/resource.rc
resources/sample.qrc
resources/themes.qrc
)
target_include_directories(Fernanda PRIVATE include)
target_include_directories(Fernanda PRIVATE source)
target_link_libraries(Fernanda PRIVATE Qt6::Network)
target_link_libraries(Fernanda PRIVATE Qt6::PrintSupport)
target_link_libraries(Fernanda PRIVATE Qt6::WebChannel)
target_link_libraries(Fernanda PRIVATE Qt6::WebEngineCore)
target_link_libraries(Fernanda PRIVATE Qt6::WebEngineWidgets)
target_link_libraries(Fernanda PRIVATE Qt6::Widgets)
target_link_libraries(Fernanda PRIVATE Qt6::Xml)
target_link_libraries(Fernanda PRIVATE bit7z64)
install(TARGETS Fernanda RUNTIME)