2019-03-29 14:54:34 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(squawkCORE)
|
|
|
|
|
|
|
|
# Instruct CMake to run moc automatically when needed.
|
2019-04-15 22:35:09 +00:00
|
|
|
set (CMAKE_CXX_STANDARD 17)
|
2019-03-29 14:54:34 +00:00
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
|
|
find_package(Qt5Widgets CONFIG REQUIRED)
|
|
|
|
find_package(Qt5Network CONFIG REQUIRED)
|
|
|
|
|
|
|
|
set(squawkCORE_SRC
|
|
|
|
squawk.cpp
|
|
|
|
account.cpp
|
2019-04-15 22:35:09 +00:00
|
|
|
archive.cpp
|
2019-08-14 14:54:46 +00:00
|
|
|
rosteritem.cpp
|
2019-04-17 20:08:56 +00:00
|
|
|
contact.cpp
|
2019-08-21 09:35:07 +00:00
|
|
|
conference.cpp
|
2019-09-11 15:03:52 +00:00
|
|
|
storage.cpp
|
2019-09-17 15:16:09 +00:00
|
|
|
networkaccess.cpp
|
2019-03-29 14:54:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Tell CMake to create the helloworld executable
|
|
|
|
add_library(squawkCORE ${squawkCORE_SRC})
|
|
|
|
|
|
|
|
# Use the Widgets module from Qt 5.
|
|
|
|
target_link_libraries(squawkCORE Qt5::Core)
|
|
|
|
target_link_libraries(squawkCORE Qt5::Network)
|
|
|
|
target_link_libraries(squawkCORE qxmpp)
|
2019-04-15 22:35:09 +00:00
|
|
|
target_link_libraries(squawkCORE lmdb)
|
2019-03-29 14:54:34 +00:00
|
|
|
|
|
|
|
# Install the executable
|
|
|
|
install(TARGETS squawkCORE DESTINATION lib)
|