<commit_before>#
# Vuzix plugin for OSVR
#
cmake_minimum_required(VERSION 2.8.12)
project(com_osvr_Vuzix)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

# This looks for an osvrConfig.cmake file - most of the time it can be
# autodetected but you might need to create/extend CMAKE_PREFIX_PATH to include something like
# C:/Users/Ryan/Desktop/build/OSVR-Core-vc12/osvr or
# C:/Users/Ryan/Downloads/OSVR-Core-Snapshot-v0.1-406-gaa55515-build54-vs12-32bit
# in the CMake GUI or command line.
find_package(osvr REQUIRED)
find_package(Vuzix REQUIRED)

# This generates a header file, from the named json file, containing a string literal
# named com_osvr_Vuzix_json (not null terminated)
# The file must be added as a source file to some target (as below) to be generated.
osvr_convert_json(com_osvr_Vuzix_json
    com_osvr_Vuzix.json
    "${CMAKE_CURRENT_BINARY_DIR}/com_osvr_Vuzix_json.h")

# Be able to find our generated header file.
include_directories("${CMAKE_CURRENT_BINARY_DIR}")

# This is just a helper function wrapping CMake's add_library command that
# sets up include dirs, libraries, and naming convention (no leading "lib")
# for an OSVR plugin. It also installs the plugin into the right directory.
# Pass as many source files as you need.
osvr_add_plugin(com_osvr_Vuzix
    com_osvr_Vuzix.cpp
    "${CMAKE_CURRENT_BINARY_DIR}/com_osvr_Vuzix_json.h")

# This example uses the C++ wrapper, as suggested, so you'll need this line.
target_link_libraries(com_osvr_Vuzix
    osvr::osvrPluginKitCpp
    Vuzix::iWearDriver)<commit_msg>A bit more build cleanup.<commit_after>#
# Vuzix plugin for OSVR
#
cmake_minimum_required(VERSION 2.8.12)
project(com_osvr_Vuzix)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

# This looks for an osvrConfig.cmake file - most of the time it can be
# autodetected but you might need to create/extend CMAKE_PREFIX_PATH to include something like
# C:/Users/Ryan/Desktop/build/OSVR-Core-vc12 or
# C:/Users/Ryan/Downloads/OSVR-Core-Snapshot-v0.1-406-gaa55515-build54-vs12-32bit
# in the CMake GUI or command line.
find_package(osvr REQUIRED)
find_package(Vuzix REQUIRED)

# Generate our JSON header file
osvr_convert_json(com_osvr_Vuzix_json
    com_osvr_Vuzix.json
    "${CMAKE_CURRENT_BINARY_DIR}/com_osvr_Vuzix_json.h")

# Be able to find our generated header file.
include_directories("${CMAKE_CURRENT_BINARY_DIR}")

# Build and install the plugin
osvr_add_plugin(com_osvr_Vuzix
    com_osvr_Vuzix.cpp
    "${CMAKE_CURRENT_BINARY_DIR}/com_osvr_Vuzix_json.h")

# Link against PluginKit (C++ wrapper) and the Vuzix iWear driver.
target_link_libraries(com_osvr_Vuzix
    osvr::osvrPluginKitCpp
    Vuzix::iWearDriver)
{'fraction_non_alphanumeric': 0.08188217858466099, 'fraction_numerical': 0.016302334197851057, 'mean_word_length': 5.490384615384615, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1917509', 'n_tokens_mistral': 1028, 'n_tokens_neox': 971, 'n_words': 251}