squawk/ui/CMakeLists.txt

45 lines
1.1 KiB
CMake
Raw Permalink Normal View History

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-05-08 21:35:47 +00:00
find_package(Boost 1.36.0 REQUIRED COMPONENTS
date_time filesystem iostreams)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
endif()
2019-03-29 14:54:34 +00:00
add_subdirectory(utils)
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
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
models/group.cpp
models/room.cpp
models/abstractparticipant.cpp
models/participant.cpp
2020-04-16 20:23:02 +00:00
models/reference.cpp
models/messagefeed.cpp
models/element.cpp
2019-03-29 14:54:34 +00:00
)
# Tell CMake to create the helloworld executable
2021-05-08 22:22:14 +00:00
add_library(squawkUI STATIC ${squawkUI_SRC})
2019-03-29 14:54:34 +00:00
# Use the Widgets module from Qt 5.
target_link_libraries(squawkUI squawkWidgets)
target_link_libraries(squawkUI squawkUIUtils)
2019-03-29 14:54:34 +00:00
target_link_libraries(squawkUI Qt5::Widgets)
target_link_libraries(squawkUI Qt5::DBus)