squawk/qomemo/CMakeLists.txt

26 lines
779 B
CMake
Raw Normal View History

2021-05-10 21:12:33 +00:00
cmake_minimum_required(VERSION 3.3)
project(qomemo)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
set(CMAKE_AUTOMOC ON)
find_package(Qt5Core CONFIG REQUIRED)
find_package(Qt5Xml CONFIG REQUIRED)
find_package(LMDB REQUIRED)
set(qomemo_SRC signal.h)
2021-05-10 21:12:33 +00:00
add_library(qomemo STATIC ${qomemo_SRC})
if(SYSTEM_QXMPP)
get_target_property(QXMPP_INTERFACE_INCLUDE_DIRECTORIES QXmpp::QXmpp INTERFACE_INCLUDE_DIRECTORIES)
target_include_directories(qomemo PUBLIC ${QXMPP_INTERFACE_INCLUDE_DIRECTORIES})
endif()
target_include_directories(qomemo PUBLIC ${CMAKE_SOURCE_DIR}/external/signal-protocol-c/src)
2021-05-10 21:12:33 +00:00
target_link_libraries(qomemo Qt5::Core)
target_link_libraries(qomemo Qt5::Xml)
target_link_libraries(qomemo qxmpp)
target_link_libraries(qomemo lmdb)