2019-03-29 17:54:34 +03:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
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
|
|
|
|
find_package(Qt5Widgets CONFIG REQUIRED)
|
2019-06-18 18:08:03 +03:00
|
|
|
find_package(Qt5DBus CONFIG REQUIRED)
|
2019-03-29 17:54:34 +03:00
|
|
|
|
2019-11-02 23:50:25 +03:00
|
|
|
add_subdirectory(widgets)
|
|
|
|
|
2019-03-29 17:54:34 +03:00
|
|
|
set(squawkUI_SRC
|
|
|
|
squawk.cpp
|
2019-03-30 23:13:13 +03:00
|
|
|
models/accounts.cpp
|
2019-04-01 00:05:09 +03:00
|
|
|
models/roster.cpp
|
2019-04-03 21:15:36 +03:00
|
|
|
models/item.cpp
|
|
|
|
models/account.cpp
|
2019-04-05 18:12:59 +03:00
|
|
|
models/contact.cpp
|
2019-04-07 17:02:41 +03:00
|
|
|
models/presence.cpp
|
2019-06-22 23:37:22 +03:00
|
|
|
models/group.cpp
|
2019-07-11 11:51:52 +03:00
|
|
|
models/room.cpp
|
2019-09-01 22:46:12 +03:00
|
|
|
models/abstractparticipant.cpp
|
2019-09-02 14:17:28 +03:00
|
|
|
models/participant.cpp
|
2019-09-19 17:31:27 +03:00
|
|
|
utils/messageline.cpp
|
|
|
|
utils//message.cpp
|
2019-09-18 01:05:32 +03:00
|
|
|
utils/resizer.cpp
|
|
|
|
utils/image.cpp
|
2019-09-19 17:31:27 +03:00
|
|
|
utils/flowlayout.cpp
|
|
|
|
utils/badge.cpp
|
2019-10-30 16:47:21 +03:00
|
|
|
utils/progress.cpp
|
2019-11-02 23:50:25 +03:00
|
|
|
utils/comboboxdelegate.cpp
|
2019-03-29 17:54:34 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
# Tell CMake to create the helloworld executable
|
|
|
|
add_library(squawkUI ${squawkUI_SRC})
|
|
|
|
|
|
|
|
# Use the Widgets module from Qt 5.
|
2019-11-02 23:50:25 +03:00
|
|
|
target_link_libraries(squawkUI squawkWidgets)
|
2019-03-29 17:54:34 +03:00
|
|
|
target_link_libraries(squawkUI Qt5::Widgets)
|
2019-06-18 18:08:03 +03:00
|
|
|
target_link_libraries(squawkUI Qt5::DBus)
|