2021-04-26 16:37:36 +00:00
|
|
|
cmake_minimum_required(VERSION 3.3)
|
2019-03-29 14:54:34 +00:00
|
|
|
project(squawkUI)
|
|
|
|
|
|
|
|
# Instruct CMake to run moc automatically when needed.
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
# Instruct CMake to create code from Qt designer ui files
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
|
|
|
|
# Find the QtWidgets library
|
2020-08-12 16:55:01 +00:00
|
|
|
find_package(Qt5 CONFIG REQUIRED COMPONENTS Widgets DBus Core)
|
2021-04-26 16:37:36 +00:00
|
|
|
find_package(Boost 1.36.0 CONFIG REQUIRED COMPONENTS
|
|
|
|
date_time filesystem iostreams)
|
2020-08-11 22:49:51 +00:00
|
|
|
if(Boost_FOUND)
|
|
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
|
|
|
endif()
|
2019-03-29 14:54:34 +00:00
|
|
|
|
2019-11-02 20:50:25 +00:00
|
|
|
add_subdirectory(widgets)
|
|
|
|
|
2019-03-29 14:54:34 +00:00
|
|
|
set(squawkUI_SRC
|
|
|
|
squawk.cpp
|
2019-03-30 20:13:13 +00:00
|
|
|
models/accounts.cpp
|
2019-03-31 21:05:09 +00:00
|
|
|
models/roster.cpp
|
2019-04-03 18:15:36 +00:00
|
|
|
models/item.cpp
|
|
|
|
models/account.cpp
|
2019-04-05 15:12:59 +00:00
|
|
|
models/contact.cpp
|
2019-04-07 14:02:41 +00:00
|
|
|
models/presence.cpp
|
2019-06-22 20:37:22 +00:00
|
|
|
models/group.cpp
|
2019-07-11 08:51:52 +00:00
|
|
|
models/room.cpp
|
2019-09-01 19:46:12 +00:00
|
|
|
models/abstractparticipant.cpp
|
2019-09-02 11:17:28 +00:00
|
|
|
models/participant.cpp
|
2020-04-16 20:23:02 +00:00
|
|
|
models/reference.cpp
|
2020-08-11 22:49:51 +00:00
|
|
|
models/messagefeed.cpp
|
|
|
|
models/element.cpp
|
2019-09-19 14:31:27 +00:00
|
|
|
utils/messageline.cpp
|
2021-05-03 00:35:43 +00:00
|
|
|
utils/message.cpp
|
2019-09-17 22:05:32 +00:00
|
|
|
utils/resizer.cpp
|
|
|
|
utils/image.cpp
|
2019-09-19 14:31:27 +00:00
|
|
|
utils/flowlayout.cpp
|
|
|
|
utils/badge.cpp
|
2019-10-30 13:47:21 +00:00
|
|
|
utils/progress.cpp
|
2019-11-02 20:50:25 +00:00
|
|
|
utils/comboboxdelegate.cpp
|
2020-03-30 21:17:10 +00:00
|
|
|
utils/dropshadoweffect.cpp
|
2020-08-15 21:48:28 +00:00
|
|
|
utils/feedview.cpp
|
2020-08-20 21:32:30 +00:00
|
|
|
utils/messagedelegate.cpp
|
2021-05-03 00:35:43 +00:00
|
|
|
utils/eb.cpp
|
|
|
|
utils/shadowoverlay.cpp
|
2019-03-29 14:54:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Tell CMake to create the helloworld executable
|
|
|
|
add_library(squawkUI ${squawkUI_SRC})
|
|
|
|
|
|
|
|
# Use the Widgets module from Qt 5.
|
2019-11-02 20:50:25 +00:00
|
|
|
target_link_libraries(squawkUI squawkWidgets)
|
2019-03-29 14:54:34 +00:00
|
|
|
target_link_libraries(squawkUI Qt5::Widgets)
|
2019-06-18 15:08:03 +00:00
|
|
|
target_link_libraries(squawkUI Qt5::DBus)
|