forked from blue/squawk
26 lines
779 B
CMake
26 lines
779 B
CMake
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)
|
|
|
|
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)
|
|
|
|
target_link_libraries(qomemo Qt5::Core)
|
|
target_link_libraries(qomemo Qt5::Xml)
|
|
target_link_libraries(qomemo qxmpp)
|
|
target_link_libraries(qomemo lmdb)
|