squawk/core/CMakeLists.txt

36 lines
937 B
CMake
Raw Normal View History

2019-03-29 14:54:34 +00:00
cmake_minimum_required(VERSION 3.0)
project(squawkCORE)
# Instruct CMake to run moc automatically when needed.
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
rosteritem.cpp
contact.cpp
2019-08-21 09:35:07 +00:00
conference.cpp
storage.cpp
networkaccess.cpp
2019-03-29 14:54:34 +00:00
)
# Tell CMake to create the helloworld executable
add_library(squawkCORE ${squawkCORE_SRC})
if(SYSTEM_QXMPP)
find_package(QXmpp CONFIG REQUIRED)
get_target_property(QXMPP_INTERFACE_INCLUDE_DIRECTORIES QXmpp::QXmpp INTERFACE_INCLUDE_DIRECTORIES)
target_include_directories(squawkCORE PUBLIC ${QXMPP_INTERFACE_INCLUDE_DIRECTORIES})
endif()
2019-03-29 14:54:34 +00:00
# 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)