forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
33 lines (26 loc) · 827 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
include (LibAddPlugin)
list (FIND ADDED_PLUGINS "internalnotification" FOUND_NAME)
if (FOUND_NAME EQUAL -1)
message (STATUS "Exclude Library notification because internalnotification plugin excluded")
else ()
set (SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/notification.c")
set (LIBRARY_NAME elektra-notification)
add_lib (
notification
SOURCES
${SOURCES}
LINK_ELEKTRA
elektra-kdb
elektra-ease
elektra-invoke
COMPONENT
libelektra${SO_VERSION})
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/${LIBRARY_NAME}.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/${LIBRARY_NAME}.pc" @ONLY)
install (
FILES "${CMAKE_CURRENT_BINARY_DIR}/${LIBRARY_NAME}.pc"
DESTINATION lib${LIB_SUFFIX}/${TARGET_PKGCONFIG_FOLDER}
COMPONENT libelektra-dev)
if (ENABLE_TESTING)
add_subdirectory (tests)
endif (ENABLE_TESTING)
endif ()