<commit_before>########################################################################
## Support for LimeRFE
########################################################################
set(THIS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(LIMERFE_GUI_SOURCES
    ${THIS_SOURCE_DIR}/limeRFE_gui.cpp
    ${THIS_SOURCE_DIR}/limeRFE_wxgui.cpp
    ${THIS_SOURCE_DIR}/limeRFE_cmd.cpp
    ${THIS_SOURCE_DIR}/RFE_Device.cpp
)
#milans 200309
#if(MSVC)
#    list(APPEND LIMERFE_GUI_SOURCES ${THIS_SOURCE_DIR}/external/termiWin/termiWin.c)
#endif()

set(LIMERFE_SOURCES
    ${THIS_SOURCE_DIR}/limeRFE_cmd.cpp
    ${THIS_SOURCE_DIR}/limeRFE_api.cpp
    ${THIS_SOURCE_DIR}/RFE_Device.cpp
)

#milans 200309
#if(MSVC)
#    list(APPEND LIMERFE_SOURCES ${THIS_SOURCE_DIR}/external/termiWin/termiWin.c)
#endif()

########################################################################
## Feature registration
########################################################################
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_LIMERFE "Enable LimeRFE support" ON "ENABLE_LIBRARY" OFF)
add_feature_info(LimeRFE ENABLE_LIMERFE "LimeRFE support")

if(ENABLE_LIMERFE)
    target_compile_definitions(LimeSuiteGUI PUBLIC "LIMERFE")
endif()

if (NOT ENABLE_LIMERFE)
    return()
endif()

########################################################################
## Add to library
########################################################################
target_sources(LimeSuiteGUI PRIVATE ${LIMERFE_GUI_SOURCES})
target_sources(LimeSuite PRIVATE ${LIMERFE_SOURCES})<commit_msg>LimeRFE: Fix CMake requiring GUI<commit_after>########################################################################
## Support for LimeRFE
########################################################################
set(THIS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(LIMERFE_GUI_SOURCES
    ${THIS_SOURCE_DIR}/limeRFE_gui.cpp
    ${THIS_SOURCE_DIR}/limeRFE_wxgui.cpp
    ${THIS_SOURCE_DIR}/limeRFE_cmd.cpp
    ${THIS_SOURCE_DIR}/RFE_Device.cpp
)
#milans 200309
#if(MSVC)
#    list(APPEND LIMERFE_GUI_SOURCES ${THIS_SOURCE_DIR}/external/termiWin/termiWin.c)
#endif()

set(LIMERFE_SOURCES
    ${THIS_SOURCE_DIR}/limeRFE_cmd.cpp
    ${THIS_SOURCE_DIR}/limeRFE_api.cpp
    ${THIS_SOURCE_DIR}/RFE_Device.cpp
)

#milans 200309
#if(MSVC)
#    list(APPEND LIMERFE_SOURCES ${THIS_SOURCE_DIR}/external/termiWin/termiWin.c)
#endif()

########################################################################
## Feature registration
########################################################################
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_LIMERFE "Enable LimeRFE support" ON "ENABLE_LIBRARY" OFF)
add_feature_info(LimeRFE ENABLE_LIMERFE "LimeRFE support")

if(ENABLE_LIMERFE AND ENABLE_GUI)
    target_compile_definitions(LimeSuiteGUI PUBLIC "LIMERFE")
endif()

if (NOT ENABLE_LIMERFE)
    return()
endif()

########################################################################
## Add to library
########################################################################
if(ENABLE_GUI)
    target_sources(LimeSuiteGUI PRIVATE ${LIMERFE_GUI_SOURCES})
endif()
target_sources(LimeSuite PRIVATE ${LIMERFE_SOURCES})
{'fraction_non_alphanumeric': 0.3454769990737882, 'fraction_numerical': 0.007409694350108058, 'mean_word_length': 9.764119601328904, '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': '6929610', 'n_tokens_mistral': 1087, 'n_tokens_neox': 968, 'n_words': 133}