summaryrefslogtreecommitdiffstats
path: root/src/libomemo-test.cmake
blob: 7f5a880e3982b23d08a9749ed94009e1cfc65f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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(LIBOMEMO libomemo)

include_directories(${LIBOMEMO_INCLUDE_DIRS})
target_link_libraries(${TGT} ${LIBOMEMO_LIBRARIES})

install(TARGETS ${TGT} DESTINATION bin)