-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
52 lines (43 loc) · 1.02 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
cmake_minimum_required(VERSION 3.1)
project(DevChatDesktop)
find_package(Qt5 COMPONENTS Widgets Sql Network REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR TRUE)
set(CMAKE_AUTOMOC TRUE)
set(DevChatDesktop_SOURCES
main.cpp
dbmanager.cpp
server_list_window.cpp
client_info.cpp
chat_client.cpp
items_server_list.cpp
message_chat.cpp
)
set(DevChatDesktop_HEADERS
dbmanager.h
server_list_window.h
client_info.h
chat_client.h
items_server_list.h
message_chat.h
)
set(DevChatDesktop_UI
server_list_window.ui
items_server_list.ui
chat_client.ui
message_chat.ui
)
#set(DevChatDesktop_RSC
# resources.qrc
#)
qt5_wrap_ui(DevChatDesktop_UI_HEADERS ${DevChatDesktop_UI})
#qt5_add_resources(DevChatDesktop_RSC_HEADERS ${DevChatDesktop_RSC})
add_executable(DevChatDesktop
${DevChatDesktop_SOURCES}
${DevChatDesktop_HEADERS}
${DevChatDesktop_UI_HEADERS}
${DevChatDesktop_RSC_HEADERS})
target_link_libraries(DevChatDesktop
Qt5::Widgets
Qt5::Sql
Qt5::Network
)