<commit_before># Libraries that do not strictly belong to a single module but also not in the core
# FIXME: THIS IS TEMPORARY AND SHOULD LATER BE FIXED IN A BETTER WAY

# Geant4 is required for geometry description and charge deposition.
FIND_PACKAGE(Geant4 REQUIRED ui_all vis_all)
IF(NOT Geant4_FOUND)
    MESSAGE(FATAL_ERROR "Could not find Geant4, make sure to source the Geant4 environment\n"
    "$ source YOUR_GEANT4_DIR/bin/geant4.sh")
ENDIF(NOT Geant4_FOUND)

# Add Geant4 flags before our own flags
ADD_DEFINITIONS(${Geant4_DEFINITIONS})
SET(${CMAKE_CXX_FLAGS} "${Geant4_CXX_FLAGS} ${CMAKE_CXX_FLAGS}")
IF(CMAKE_BUILD_TYPE MATCHES DEBUG)
    SET(${CMAKE_CXX_FLAGS} "${Geant4_CXX_FLAGS_DEBUG} ${CMAKE_CXX_FLAGS}")
ELSEIF(CMAKE_BUILD_TYPE MATCHES RELEASE)
    SET(${CMAKE_CXX_FLAGS} "${Geant4_CXX_FLAGS_RELEASE} ${CMAKE_CXX_FLAGS}")
ENDIF()

# Include Geant4 directories (WARNING: do not use the Geant4_USE_FILE!)
INCLUDE_DIRECTORIES(SYSTEM ${Geant4_INCLUDE_DIRS})

# include directories for dependencies
INCLUDE_DIRECTORIES(SYSTEM ${ALLPIX_DEPS_INCLUDE_DIRS})

# add the library
ADD_LIBRARY(AllPixModulesCommon SHARED
    BumpsParameterizationG4.cpp
    ReadGeoDescription.cpp
)

# link the standard allpix libraries
TARGET_LINK_LIBRARIES(AllPixModulesCommon ${ALLPIX_LIBRARIES} ${ALLPIX_DEPS_LIBRARIES})

# add Geant4 libraries
TARGET_LINK_LIBRARIES(AllPixModulesCommon ${Geant4_LIBRARIES})<commit_msg>fix missing install target<commit_after># Libraries that do not strictly belong to a single module but also not in the core
# FIXME: THIS IS TEMPORARY AND SHOULD LATER BE FIXED IN A BETTER WAY

# Geant4 is required for geometry description and charge deposition.
FIND_PACKAGE(Geant4 REQUIRED ui_all vis_all)
IF(NOT Geant4_FOUND)
    MESSAGE(FATAL_ERROR "Could not find Geant4, make sure to source the Geant4 environment\n"
    "$ source YOUR_GEANT4_DIR/bin/geant4.sh")
ENDIF(NOT Geant4_FOUND)

# Add Geant4 flags before our own flags
ADD_DEFINITIONS(${Geant4_DEFINITIONS})
SET(${CMAKE_CXX_FLAGS} "${Geant4_CXX_FLAGS} ${CMAKE_CXX_FLAGS}")
IF(CMAKE_BUILD_TYPE MATCHES DEBUG)
    SET(${CMAKE_CXX_FLAGS} "${Geant4_CXX_FLAGS_DEBUG} ${CMAKE_CXX_FLAGS}")
ELSEIF(CMAKE_BUILD_TYPE MATCHES RELEASE)
    SET(${CMAKE_CXX_FLAGS} "${Geant4_CXX_FLAGS_RELEASE} ${CMAKE_CXX_FLAGS}")
ENDIF()

# Include Geant4 directories (WARNING: do not use the Geant4_USE_FILE!)
INCLUDE_DIRECTORIES(SYSTEM ${Geant4_INCLUDE_DIRS})

# include directories for dependencies
INCLUDE_DIRECTORIES(SYSTEM ${ALLPIX_DEPS_INCLUDE_DIRS})

# add the library
ADD_LIBRARY(AllPixModulesCommon SHARED
    BumpsParameterizationG4.cpp
    ReadGeoDescription.cpp
)

# link the standard allpix libraries
TARGET_LINK_LIBRARIES(AllPixModulesCommon ${ALLPIX_LIBRARIES} ${ALLPIX_DEPS_LIBRARIES})

# add Geant4 libraries
TARGET_LINK_LIBRARIES(AllPixModulesCommon ${Geant4_LIBRARIES})

# add installation target
INSTALL(TARGETS AllPixModulesCommon
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib)
{'fraction_non_alphanumeric': 0.07754825601083644, 'fraction_numerical': 0.012868269556383339, 'mean_word_length': 7.22841225626741, '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': '6794897', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1030, 'n_words': 257}