summaryrefslogtreecommitdiffstats
path: root/src/libomemo-test.cmake
blob: 44e7fc54599bb1b1c108e5941bd6ce1637f12217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This file is part of MXE. See LICENSE.md for licensing information.

# partial module - included by src/cmake/CMakeLists.txt

set(TGT test-${PKG}-cmake)

enable_language(C)
add_executable(${TGT} ${CMAKE_CURRENT_LIST_DIR}/${PKG}-test.c)

find_package(PkgConfig REQUIRED)
pkg_check_modules(GLIB2 glib-2.0)

include_directories(${GLIB2_INCLUDE_DIRS})
target_link_libraries(${TGT} omemo-conversations
                             mxml
                             gcrypt
                             gpg-error
                             pthread
                             ${GLIB2_LIBRARIES})

install(TARGETS ${TGT} DESTINATION bin)