notifications: exclude notification library without internalnotification plugin
+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"
)
@@ -25,3 +31,5 @@ add_subdirectory (example)
if (ENABLE_TESTING)
add_subdirectory (tests)
endif (ENABLE_TESTING)
+
+endif ()
