<commit_before>cmake_minimum_required(VERSION 3.0)

project(chemicalite)

set(CMAKE_MODULE_PATH
    ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")

find_package(Sqlite3 REQUIRED)
include_directories(${SQLITE3_INCLUDE_DIR})

find_package(RDKit REQUIRED)
include_directories(${RDKit_INCLUDE_DIRS})

add_library(chemicalite MODULE 
 	    molecule.c
	    bfp_ops.c
 	    bitstring.c
	    rdtree.c
            chemicalite.c
            rdkit_adapter.cpp)

set_target_properties(chemicalite PROPERTIES PREFIX "")

target_link_libraries(chemicalite 
                      Descriptors Fingerprints GraphMol  ${SQLITE3_LIBRARY})

add_subdirectory(examples)

option(CHEMICALITE_ENABLE_NATIVE_OPT
       "enable compiler optimization for the native architecture" ON)
option(CHEMICALITE_ENABLE_TESTS "enable tests" ON)
option(CHEMICALITE_ENABLE_PYTHON_TESTS "enable python tests" ON)

if (CHEMICALITE_ENABLE_TESTS) 
    enable_testing()
    add_subdirectory(test)
    if (CHEMICALITE_ENABLE_PYTHON_TESTS)
        find_package(PythonInterp REQUIRED)
    endif (CHEMICALITE_ENABLE_PYTHON_TESTS)
endif (CHEMICALITE_ENABLE_TESTS) 

if (CHEMICALITE_ENABLE_NATIVE_OPT)<commit_msg>update the build configuration to include targets required by RDKit<commit_after>cmake_minimum_required(VERSION 3.0)

project(chemicalite)

set(CMAKE_MODULE_PATH
    ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")

find_package(Sqlite3 REQUIRED)
include_directories(${SQLITE3_INCLUDE_DIR})

find_package(Threads)
find_package(Eigen3 REQUIRED)
find_package(RDKit REQUIRED)
include_directories(${RDKit_INCLUDE_DIRS})

add_library(chemicalite MODULE
 	    molecule.c
	    bfp_ops.c
 	    bitstring.c
	    rdtree.c
            chemicalite.c
            rdkit_adapter.cpp)

set_target_properties(chemicalite PROPERTIES PREFIX "")

target_link_libraries(chemicalite PUBLIC
                      Descriptors Fingerprints GraphMol  ${SQLITE3_LIBRARY})

add_subdirectory(examples)

option(CHEMICALITE_ENABLE_NATIVE_OPT
       "enable compiler optimization for the native architecture" ON)
option(CHEMICALITE_ENABLE_TESTS "enable tests" ON)
option(CHEMICALITE_ENABLE_PYTHON_TESTS "enable python tests" ON)

if (CHEMICALITE_ENABLE_TESTS)
    enable_testing()
    add_subdirectory(test)
    if (CHEMICALITE_ENABLE_PYTHON_TESTS)
        find_package(PythonInterp REQUIRED)
    endif (CHEMICALITE_ENABLE_PYTHON_TESTS)
endif (CHEMICALITE_ENABLE_TESTS)

if (CHEMICALITE_ENABLE_NATIVE_OPT)
{'fraction_non_alphanumeric': 0.06793368378487667, 'fraction_numerical': 0.004448038819247877, 'mean_word_length': 5.343589743589743, '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': '1820293', 'n_tokens_mistral': 918, 'n_tokens_neox': 838, 'n_words': 134}