<commit_before>#==============================================================================#
# Boost.Numpy library will be built as an external project
ExternalProject_add(Boost.Numpy
    PREFIX external/Boost.Numpy
    GIT_REPOSITORY https://github.com/ndarray/Boost.NumPy
    CMAKE_ARGS  -DBUILD_EXAMPLES=OFF
                -DBUILD_TESTS=OFF
                -DLIBRARY_TYPE=STATIC
                -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}
    UPDATE_COMMAND ""
)
include_directories(${CMAKE_BINARY_DIR}/include)
add_library(boost_numpy STATIC IMPORTED)
set_property(TARGET boost_numpy
             PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/lib/libboost_numpy.a)
#==============================================================================#

find_package(Boost REQUIRED COMPONENTS python)
find_package(PythonLibsNew REQUIRED)

include_directories(SYSTEM ${PYTHON_INCLUDE_DIRS})

PYTHON_ADD_MODULE(_chemharp chemharp.cpp)
add_dependencies(_chemharp boost_numpy)
target_link_libraries(_chemharp<commit_msg>Update dependency for python binding<commit_after>#==============================================================================#
# Boost.Numpy library will be built as an external project
ExternalProject_add(Boost.Numpy
    PREFIX external/Boost.Numpy
    GIT_REPOSITORY https://github.com/ndarray/Boost.NumPy
    CMAKE_ARGS  -DBUILD_EXAMPLES=OFF
                -DBUILD_TESTS=OFF
                -DLIBRARY_TYPE=STATIC
                -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}
    UPDATE_COMMAND ""
)
include_directories(${CMAKE_BINARY_DIR}/include)
add_library(boost_numpy STATIC IMPORTED)
set_property(TARGET boost_numpy
             PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/lib/libboost_numpy.a)
#==============================================================================#

find_package(Boost REQUIRED COMPONENTS python)
find_package(PythonLibsNew REQUIRED)

include_directories(SYSTEM ${PYTHON_INCLUDE_DIRS})

PYTHON_ADD_MODULE(_chemharp chemharp.cpp)
add_dependencies(_chemharp Boost.Numpy)
target_link_libraries(_chemharp
{'fraction_non_alphanumeric': 0.21536217792902285, 'fraction_numerical': 0.0, 'mean_word_length': 5.906040268456376, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2860808', 'n_tokens_mistral': 664, 'n_tokens_neox': 606, 'n_words': 89}