<commit_before># - Find Geant4 library
# This module sets up Geant4 information
# It defines:
# GEANT4_FOUND               If the Geant4 is found
# GEANT4_INCLUDE_DIR         PATH to the include directory
# GEANT4_LIBRARY_DIR         PATH to the library directory
# GEANT4_LIBRARIES           Most common libraries
# GEANT4_LIBRARIES_WITH_VIS  Most common libraries with visualization

find_program(GEANT4_CONFIG NAMES geant4-config
             PATHS $ENV{GEANT4_INSTALL}/bin
                   ${GEANT4_INSTALL}/bin
                   /usr/local/bin /opt/local/bin)

if(GEANT4_CONFIG)
  set(GEANT4_FOUND TRUE)

  execute_process(COMMAND ${GEANT4_CONFIG} --prefix
                  OUTPUT_VARIABLE GEANT4_PREFIX
                  OUTPUT_STRIP_TRAILING_WHITESPACE)
  execute_process(COMMAND ${GEANT4_CONFIG} --version
                  OUTPUT_VARIABLE GEANT4_VERSION
                  OUTPUT_STRIP_TRAILING_WHITESPACE)

  message(STATUS "Found Geant4: ${GEANT4_PREFIX} (${GEANT4_VERSION})")

else()
  set(GEANT4_FOUND FALSE)
  message(STATUS "NOT Found Geant4: set GEANT4_INSTALL env.")

endif()

set(GEANT4_INCLUDE_DIR ${GEANT4_PREFIX}/include/Geant4)
set(GEANT4_LIBRARY_DIR ${GEANT4_PREFIX}/lib64)
set(GEANT4_LIBRARIES  G4interfaces G4persistency G4analysis
                      G4error_propagation G4readout G4physicslists
                      G4run G4event G4tracking G4parmodels G4processes
                      G4digits_hits G4track G4particles G4geometry
                      G4materials G4graphics_reps G4intercoms
                      G4global G4clhep)<commit_msg>add first implementation of FindCppUTest using pkg_config<commit_after># - Find CPPUTest library
# It defines:
# CPPUTEST_FOUND               If the CPPUTest is found
# CPPUTEST_INCLUDE_DIRS        PATH to the include directory
# CPPUTEST_LIBRARIES           libraries

find_package(PkgConfig)

pkg_check_modules(PC_CPPUTEST cpputest>=3.7)

find_path(CPPUTEST_INCLUDE_DIR CppUTest/CppUTestConfig.h
  HINTS ${PC_CPPUTEST_INCLUDEDIR} ${PC_CPPUTEST_INCLUDE_DIRS}
)

find_library(CPPUTEST_LIBRARY NAMES CppUTest libCppUTest
  HINTS ${PC_CPPUTEST_LIBDIR} ${PC_CPPUTEST_LIBRARY_DIRS}
)

include(FindPackageHandleStandardArgs)

find_package_handle_standard_args(CppUTest DEFAULT_MSG
  CPPUTEST_LIBRARY CPPUTEST_INCLUDE_DIR)

mark_as_advanced(CPPUTEST_INCLUDE_DIR CPPUTEST_LIBRARY)
{'fraction_non_alphanumeric': 0.054870267971076137, 'fraction_numerical': 0.022968949383241174, 'mean_word_length': 3.4714828897338403, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4205908', 'n_tokens_mistral': 847, 'n_tokens_neox': 784, 'n_words': 151}