<commit_before>cmake_minimum_required(VERSION 2.6)
project(96boardsctl)

set (96boardsctl_VERSION_MAJOR 1)
set (96boardsctl_VERSION_MINOR 0)

configure_file ("${PROJECT_SOURCE_DIR}/config.h.in" "${PROJECT_BINARY_DIR}/config.h")
include_directories ("${PROJECT_BINARY_DIR}")

find_package(PkgConfig)
pkg_check_modules(PC_LIBS REQUIRED libusb libftdi)

add_executable(96boardsctl 96boardsctl.c)
target_link_libraries(96boardsctl usb ftdi)

install (TARGETS 96boardsctl DESTINATION bin)
install (FILES udev-rules/71-ftdi_sio.rules DESTINATION etc/udev/rules.d)<commit_msg>96boardsctl: Fix build for libftdi >= 1.0<commit_after>cmake_minimum_required(VERSION 2.6)
project(96boardsctl)

set (96boardsctl_VERSION_MAJOR 1)
set (96boardsctl_VERSION_MINOR 0)

configure_file ("${PROJECT_SOURCE_DIR}/config.h.in" "${PROJECT_BINARY_DIR}/config.h")
include_directories ("${PROJECT_BINARY_DIR}")

find_package(PkgConfig)

pkg_check_modules(LIBFTDI libftdi1)
if (NOT LIBFTDI_FOUND)
    pkg_check_modules(LIBFTDI REQUIRED libftdi)
endif()

include_directories(${LIBFTDI_INCLUDE_DIRS})
link_directories(${LIBFTDI_LIBRARY_DIRS})
add_definitions(${LIBFTDI_CFLAGS_OTHER})

add_executable(96boardsctl 96boardsctl.c)
target_link_libraries(96boardsctl ${LIBFTDI_LIBRARIES})

install (TARGETS 96boardsctl DESTINATION bin)
install (FILES udev-rules/71-ftdi_sio.rules DESTINATION etc/udev/rules.d)
{'fraction_non_alphanumeric': 0.10204081632653061, 'fraction_numerical': 0.03279883381924198, 'mean_word_length': 9.984, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2942311', 'n_tokens_mistral': 559, 'n_tokens_neox': 518, 'n_words': 79}