squawk/core/CMakeLists.txt

50 lines
1.3 KiB
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.3)
2019-03-29 14:54:34 +00:00
project(squawkCORE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
2019-03-29 14:54:34 +00:00
set(CMAKE_AUTOMOC ON)
find_package(Qt5Core CONFIG REQUIRED)
find_package(Qt5Gui CONFIG REQUIRED)
2019-03-29 14:54:34 +00:00
find_package(Qt5Network CONFIG REQUIRED)
find_package(Qt5Xml CONFIG REQUIRED)
find_package(LMDB REQUIRED)
2019-03-29 14:54:34 +00:00
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
2021-04-13 13:27:31 +00:00
urlstorage.cpp
networkaccess.cpp
2019-11-05 18:55:21 +00:00
adapterFuctions.cpp
2020-04-28 20:35:52 +00:00
handlers/messagehandler.cpp
2020-06-14 21:23:43 +00:00
handlers/rosterhandler.cpp
2019-03-29 14:54:34 +00:00
)
add_subdirectory(passwordStorageEngines)
2019-03-29 14:54:34 +00:00
# Tell CMake to create the helloworld executable
add_library(squawkCORE STATIC ${squawkCORE_SRC})
2019-03-29 14:54:34 +00:00
if(SYSTEM_QXMPP)
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 Qt5::Gui)
target_link_libraries(squawkCORE Qt5::Xml)
2019-03-29 14:54:34 +00:00
target_link_libraries(squawkCORE qxmpp)
2019-04-15 22:35:09 +00:00
target_link_libraries(squawkCORE lmdb)
target_link_libraries(squawkCORE simpleCrypt)
if (WITH_KWALLET)
target_link_libraries(squawkCORE kwalletPSE)
endif()