-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
95 lines (75 loc) · 3.11 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.9)
project(PW-Manager VERSION 1.0)
# language standards
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_subdirectory(libs/FTXUI)
add_subdirectory(libs/clip)
add_executable(app src/Main.cpp
src/Shared.h
# MODEL
src/Model/CopyToClipboard.cpp
src/Model/CopyToClipboard.h
src/Model/DatabaseManager.h
src/Model/DatabaseManager.cpp
src/Model/FtxuiIncludes.h
src/Model/Note.cpp
src/Model/Note.h
src/Model/ProgramInfo.h
src/Model/User.h
# VIEW
src/View/UI_AddNote.cpp
src/View/UI_AddNote.h
src/View/UI_ConfirmDelete.h
src/View/UI_EditNote.cpp
src/View/UI_Login.h
src/View/UI_MenuSettings.cpp
src/View/UI_Signup.h
src/View/UI_Credits.cpp
src/View/UI_EditNote.h
src/View/UI_Menu.cpp
src/View/UI_MenuSettings.h
src/View/UI_Start.cpp
src/View/UI_ConfirmDelete.cpp
src/View/UI_Credits.h
src/View/UI_Login.cpp
src/View/UI_Menu.h
src/View/UI_Signup.cpp
src/View/UI_Start.h
# VIEWMODEL
src/ViewModel/Edit.cpp
src/ViewModel/Edit.h
src/ViewModel/Login.cpp
src/ViewModel/Login.h
src/ViewModel/Menu.cpp
src/ViewModel/Menu.h
src/ViewModel/Signup.cpp
src/ViewModel/Signup.h
)
target_include_directories(app
# OWN
PRIVATE src/
PRIVATE src/View
PRIVATE src/Model
PRIVATE src/ViewModel
# FTXUI
PRIVATE inc/FTXUI/component
PRIVATE inc/FTXUI/dom
PRIVATE inc/FTXUI/screen
PRIVATE inc/FTXUI/util
# CLIP
PRIVATE inc/clip
# SQLITE
PRIVATE inc/sqlite
)
target_link_libraries(app
# FTXUI
screen
dom
component
# CLIP
clip
# SQLITE
${PROJECT_SOURCE_DIR}/libs/sqlite3/libsqlite.so
)