cmake_minimum_required(VERSION 2.8.12)
project(Trinity LANGUAGES CXX)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt5 COMPONENTS Core Quick Widgets WebEngine REQUIRED)
add_executable(${PROJECT_NAME}
src/main.cpp
qml.qrc
src/eventmodel.cpp
include/eventmodel.h
src/matrixcore.cpp
include/matrixcore.h
include/network.h
include/requestsender.h
include/room.h
include/roomlistmodel.h
src/roomlistmodel.cpp
include/desktop.h
include/membermodel.h
src/membermodel.cpp
include/community.h
include/communitylistmodel.h
src/communitylistmodel.cpp
src/roomlistsortmodel.cpp
include/roomlistsortmodel.h
include/emotelistmodel.h
src/emotelistmodel.cpp
include/emote.h
include/appcore.h
include/encryption.h
src/encryption.cpp)
find_package(Olm REQUIRED)
target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Quick Qt5::Widgets Qt5::WebEngine Olm::Olm cmark)
target_include_directories(${PROJECT_NAME} PRIVATE include)
install(TARGETS ${PROJECT_NAME} DESTINATION bin)