<commit_before>cmake_minimum_required(VERSION 3.5)
project(planning_cpp)

add_subdirectory(pybind11)

set(CMAKE_CXX_STANDARD 11)

if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-deprecated")
endif()

set(SOURCE_FILES src/ext/dubins.cpp src/ext/dubins.h src/trajectory.h src/uav.h
        src/waypoint.h src/raster.h src/visibility.h src/planning.h src/ext/optional.h src/utils.h
        src/neighborhoods/dubins_optimization.h src/neighborhoods/insertions.h src/vns_interface.h
        src/plan.h src/fire_data.h src/neighborhoods/moves.h)

add_executable(planning_cpp ${SOURCE_FILES} src/test/main.cpp)

pybind11_add_module(uav_planning ${SOURCE_FILES} src/python_interface.cpp)<commit_msg>Find package pybind11 instead of adding the subdirectory with its source code<commit_after>cmake_minimum_required(VERSION 3.5)
project(planning_cpp)

find_package(pybind11)

set(CMAKE_CXX_STANDARD 11)

if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-deprecated")
endif()

set(SOURCE_FILES src/ext/dubins.cpp src/ext/dubins.h src/trajectory.h src/uav.h
        src/waypoint.h src/raster.h src/visibility.h src/planning.h src/ext/optional.h src/utils.h
        src/neighborhoods/dubins_optimization.h src/neighborhoods/insertions.h src/vns_interface.h
        src/plan.h src/fire_data.h src/neighborhoods/moves.h)

add_executable(planning_cpp ${SOURCE_FILES} src/test/main.cpp)

pybind11_add_module(uav_planning ${SOURCE_FILES} src/python_interface.cpp)
{'fraction_non_alphanumeric': 0.10331632653061225, 'fraction_numerical': 0.011479591836734694, 'mean_word_length': 5.378048780487805, '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': '1539647', 'n_tokens_mistral': 655, 'n_tokens_neox': 604, 'n_words': 84}