forked from strinking/Trinity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (36 loc) · 1.08 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
cmake_minimum_required(VERSION 2.8.12)
project(Trinity LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt5 COMPONENTS Core Quick Widgets WebEngine REQUIRED)
set(TRINITY_SRCS
src/main.cpp
src/eventmodel.cpp
src/matrixcore.cpp
src/emotelistmodel.cpp
src/roomlistmodel.cpp
src/membermodel.cpp
src/communitylistmodel.cpp
src/roomlistsortmodel.cpp
src/settings.cpp)
set(TRINITY_HEADERS
include/eventmodel.h
include/matrixcore.h
include/network.h
include/room.h
include/roomlistmodel.h
include/desktop.h
include/membermodel.h
include/community.h
include/communitylistmodel.h
include/roomlistsortmodel.h
include/emotelistmodel.h
include/emote.h
include/callobject.h
include/settings.h)
add_executable(Trinity qml.qrc ${TRINITY_SRCS} ${TRINITY_HEADERS})
target_link_libraries(Trinity Qt5::Core Qt5::Quick Qt5::Widgets Qt5::WebEngine cmark)
target_include_directories(Trinity PRIVATE include)
install(TARGETS Trinity DESTINATION bin)