2019-03-29 14:54:34 +00: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-05-15 17:36:37 +00:00
|
|
|
find_package(Qt5Qml CONFIG REQUIRED)
|
|
|
|
find_package(Qt5QuickCompiler)
|
|
|
|
find_package(Qt5Quick CONFIG REQUIRED)
|
|
|
|
find_package(Qt5QuickWidgets CONFIG REQUIRED)
|
2019-03-29 14:54:34 +00:00
|
|
|
|
|
|
|
set(squawkUI_SRC
|
|
|
|
squawk.cpp
|
|
|
|
accounts.cpp
|
2019-03-30 20:13:13 +00:00
|
|
|
account.cpp
|
|
|
|
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-04-09 15:04:08 +00:00
|
|
|
conversation.cpp
|
2019-04-11 14:58:59 +00:00
|
|
|
messageline.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.
|
|
|
|
target_link_libraries(squawkUI Qt5::Widgets)
|
2019-05-15 17:36:37 +00:00
|
|
|
target_link_libraries(squawkUI Qt5::Quick)
|
|
|
|
target_link_libraries(squawkUI Qt5::Qml)
|
|
|
|
target_link_libraries(squawkUI Qt5::QuickWidgets)
|
2019-03-29 14:54:34 +00:00
|
|
|
|
|
|
|
# Install the executable
|
|
|
|
install(TARGETS squawkUI DESTINATION lib)
|