<commit_before>add_library(_numgrid OBJECT
  AtomGrid.cpp
  becke_partitioning.cpp
  grid_radial.cpp
  version.cpp
  bragg.cpp
  )
target_include_directories(_numgrid SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/external/upstream)
target_include_directories(_numgrid PRIVATE ${PROJECT_BINARY_DIR}/include)
add_dependencies(_numgrid version)
set_target_properties(_numgrid PROPERTIES POSITION_INDEPENDENT_CODE 1)
list(APPEND _objects
    $<TARGET_OBJECTS:_numgrid>
    $<TARGET_OBJECTS:_lebedev>
  )
if(ENABLE_FC_SUPPORT)
  list(APPEND _objects
    $<TARGET_OBJECTS:numgrid_fortran>
    )
endif()

if(NOT STATIC_LIBRARY_ONLY)
  add_library(${PROJECT_NAME}-shared
    SHARED
    ${_objects}
    )
  set_target_properties(${PROJECT_NAME}-shared PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}
    CXX_VISIBILITY_PRESET hidden
    VISIBILITY_INLINES_HIDDEN 1
    OUTPUT_NAME "numgrid"
    EXPORT_NAME "numgrid"
    )
  install(TARGETS ${PROJECT_NAME}-shared
    EXPORT "${PROJECT_NAME}Targets-shared"
    RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    )
endif()

if(NOT SHARED_LIBRARY_ONLY)
  add_library(${PROJECT_NAME}-static
    STATIC
    ${_objects}
    )
  set_target_properties(${PROJECT_NAME}-static PROPERTIES COMPILE_FLAGS -D${PROJECT_NAME}_STATIC_DEFINE
    OUTPUT_NAME "numgrid"<commit_msg>indent a bit<commit_after>add_library(
  _numgrid
  OBJECT
  AtomGrid.cpp
  becke_partitioning.cpp
  grid_radial.cpp
  version.cpp
  bragg.cpp
  )

target_include_directories(
  _numgrid
  SYSTEM PRIVATE
  ${PROJECT_SOURCE_DIR}/external/upstream
  )

target_include_directories(
  _numgrid
  PRIVATE
  ${PROJECT_BINARY_DIR}/include
  )

add_dependencies(_numgrid version)

set_target_properties(
  _numgrid
  PROPERTIES
    POSITION_INDEPENDENT_CODE 1
  )

list(APPEND _objects
  $<TARGET_OBJECTS:_numgrid>
  $<TARGET_OBJECTS:_lebedev>
  )

if(ENABLE_FC_SUPPORT)
  list(APPEND _objects
    $<TARGET_OBJECTS:numgrid_fortran>
    )
endif()

if(NOT STATIC_LIBRARY_ONLY)
  add_library(
    ${PROJECT_NAME}-shared
    SHARED
    ${_objects}
    )
  set_target_properties(${PROJECT_NAME}-shared PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}
    CXX_VISIBILITY_PRESET hidden
    VISIBILITY_INLINES_HIDDEN 1
    OUTPUT_NAME "numgrid"
    EXPORT_NAME "numgrid"
    )
  install(TARGETS ${PROJECT_NAME}-shared
    EXPORT "${PROJECT_NAME}Targets-shared"
    RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    )
endif()

if(NOT SHARED_LIBRARY_ONLY)
  add_library(${PROJECT_NAME}-static
    STATIC
    ${_objects}
    )
  set_target_properties(${PROJECT_NAME}-static PROPERTIES COMPILE_FLAGS -D${PROJECT_NAME}_STATIC_DEFINE
    OUTPUT_NAME "numgrid"
{'fraction_non_alphanumeric': 0.08317997791682002, 'fraction_numerical': 0.001472211998527788, 'mean_word_length': 5.163265306122449, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7021145', 'n_tokens_mistral': 1035, 'n_tokens_neox': 987, 'n_words': 142}