<commit_before>set (SOURCES
  "${CMAKE_CURRENT_SOURCE_DIR}/notification.c"
)

set (LIBRARY_NAME elektra-notification)

add_lib (notification
  SOURCES ${SOURCES}
  LINK_ELEKTRA elektra-kdb elektra-ease
)

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}
)

add_subdirectory (example)

if (ENABLE_TESTING)
	add_subdirectory (tests)
endif(ENABLE_TESTING)<commit_msg>notifications: exclude notification library without internalnotification plugin<commit_after>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
  )

  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}
  )

  add_subdirectory (example)

  if (ENABLE_TESTING)
  	add_subdirectory (tests)
  endif (ENABLE_TESTING)

endif ()
{'fraction_non_alphanumeric': 0.11103588354773189, 'fraction_numerical': 0.0006770480704129993, 'mean_word_length': 5.748858447488584, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7541059', 'n_tokens_mistral': 568, 'n_tokens_neox': 530, 'n_words': 86}