From 3cc2c952f3ec6d93649328a550f3ec5d10b238e2 Mon Sep 17 00:00:00 2001 From: Marius Gripsgard Date: Tue, 12 Jan 2021 12:18:03 +0100 Subject: Inital commit --- src/CMakeLists.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/CMakeLists.txt (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..5dce006 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,23 @@ + +add_library(ayatana-common SHARED + utils.c +) + +target_link_libraries(ayatana-common + ${GLIB_LIBRARIES} + ${URLDISPATCHER_LIBRARIES} +) + +if(URLDISPATCHER_FOUND) + add_definitions( -DHAS_URLDISPATCHER ) +endif() + +set(PUBLIC_HEADERS + utils.h +) + +configure_file(libayatana-common.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libayatana-common.pc @ONLY) + +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libayatana-common.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +install(FILES ${PUBLIC_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ayatana/common) +install(TARGETS ayatana-common DESTINATION ${CMAKE_INSTALL_LIBDIR}) -- cgit v1.2.3