<commit_before># NOTE: When adding examples here, add them to the list in doc/libraries.dox as well!

# These we install alongside the main binaries
set(MAINCLIENTS
    AnalogCallback
    ButtonCallback
    TrackerCallback
    DisplayParameter
    EyeTracker
    Location2D
    Direction
    Locomotion)
if(BUILD_WITH_OPENCV)
    list(APPEND MAINCLIENTS Imaging)
endif()

# These are "extra"
set(CLIENTS
    MinimalInit
    TrackerState
    ViewerEyeSurfaces)

set(LIB_c osvrClientKit)
set(LIB_cpp osvrClientKitCpp)
foreach(name ${MAINCLIENTS} ${CLIENTS})
    foreach(suffix c cpp)
        if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${name}.${suffix}")
            add_executable(${name}_${suffix} ${name}.${suffix})
            target_link_libraries(${name}_${suffix} ${LIB_${suffix}})
            set_target_properties(${name}_${suffix} PROPERTIES
                FOLDER "OSVR Example Clients")
        endif()<commit_msg>Don't ship most clients in the main directory.<commit_after># NOTE: When adding examples here, add them to the list in doc/libraries.dox as well!

# These we install alongside the main binaries
set(MAINCLIENTS)
if(BUILD_WITH_OPENCV)
    list(APPEND MAINCLIENTS Imaging)
endif()

# These are "extra"
set(CLIENTS
    AnalogCallback
    ButtonCallback
    TrackerCallback
    DisplayParameter
    EyeTracker
    Location2D
    Direction
    Locomotion
    MinimalInit
    TrackerState
    ViewerEyeSurfaces)

set(LIB_c osvrClientKit)
set(LIB_cpp osvrClientKitCpp)
foreach(name ${MAINCLIENTS} ${CLIENTS})
    foreach(suffix c cpp)
        if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${name}.${suffix}")
            add_executable(${name}_${suffix} ${name}.${suffix})
            target_link_libraries(${name}_${suffix} ${LIB_${suffix}})
            set_target_properties(${name}_${suffix} PROPERTIES
                FOLDER "OSVR Example Clients")
        endif()
{'fraction_non_alphanumeric': 0.1003737319807795, 'fraction_numerical': 0.0010678056593699946, 'mean_word_length': 3.6967418546365916, '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': '3806679', 'n_tokens_mistral': 602, 'n_tokens_neox': 580, 'n_words': 138}