2019-11-02 20:50:25 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(squawkWidgets)
|
|
|
|
|
|
|
|
# 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-15 21:48:28 +00:00
|
|
|
find_package(Qt5Widgets CONFIG REQUIRED COMPONENTS Widgets Core)
|
2019-11-02 20:50:25 +00:00
|
|
|
|
|
|
|
add_subdirectory(vcard)
|
|
|
|
|
|
|
|
set(squawkWidgets_SRC
|
|
|
|
conversation.cpp
|
|
|
|
chat.cpp
|
|
|
|
room.cpp
|
|
|
|
newcontact.cpp
|
|
|
|
accounts.cpp
|
|
|
|
account.cpp
|
|
|
|
joinconference.cpp
|
|
|
|
)
|
|
|
|
|
2021-05-06 14:44:43 +00:00
|
|
|
add_library(squawkWidgets STATIC ${squawkWidgets_SRC})
|
2019-11-02 20:50:25 +00:00
|
|
|
|
|
|
|
# Use the Widgets module from Qt 5.
|
|
|
|
target_link_libraries(squawkWidgets vCardUI)
|
2021-05-03 11:23:41 +00:00
|
|
|
target_link_libraries(squawkWidgets squawkUIUtils)
|
2019-11-02 20:50:25 +00:00
|
|
|
target_link_libraries(squawkWidgets Qt5::Widgets)
|
2020-08-12 16:55:01 +00:00
|
|
|
|
2020-08-15 21:48:28 +00:00
|
|
|
qt5_use_modules(squawkWidgets Core Widgets)
|