<commit_before>#==============================================================================
# Copyright (c) 2011 <NAME> <<EMAIL>>
#==============================================================================
# Cmake for RDO  STUDIO  CONSOLE  TEST
#==============================================================================

MESSAGE(STATUS "CREATE  RDO  STUDIO  CONSOLE  TEST  EXECUTABLE")

# Find Boost
IF(MSVC)
    SET(Boost_USE_STATIC_LIBS    ON)
    SET(Boost_USE_MULTITHREADED  ON)
ENDIF(MSVC)
FIND_PACKAGE(Boost COMPONENTS program_options REQUIRED)

SET(HEADER_FILES
    controller_console_options.h
    controller_console_options_config.h)

SET(SOURCE_FILES
    controller_console_options.cpp)

SET(MAIN_FILE 
    main.cpp)

ADD_EXECUTABLE(rdo_test ${MAIN_FILE} ${HEADER_FILES} ${SOURCE_FILES})

ADD_DEPENDENCIES(rdo_test rdo)
ADD_DEPENDENCIES(rdo_test rdo_utils)

TARGET_LINK_LIBRARIES(rdo_test rdo_utils)
TARGET_LINK_LIBRARIES(rdo_test ${Boost_PROGRAM_OPTIONS_LIBRARY})

IF(MSVC)
    ADD_DEFINITIONS(-DRDO_STUDIO_CONSOLE_APP="${EXECUTABLE_OUTPUT_PATH}/${CMAKE_BUILD_TYPE}/rdo.exe")
ELSE()
    ADD_DEFINITIONS(-DRDO_STUDIO_CONSOLE_APP="${EXECUTABLE_OUTPUT_PATH}/rdo")
ENDIF(MSVC)

IF(MSVC) # lotions for windows #

SOURCE_GROUP(".code" FILES
    ${MAIN_FILE})

SOURCE_GROUP(".console_options" FILES
    controller_console_options.h
    controller_console_options.cpp
    controller_console_options_config.h)

ENDIF(MSVC)

#==============================================================================
# temp
#==============================================================================

ADD_BOOST_TEST(test_rdo_studio_console test.cpp)

IF(MSVC)
    ADD_DEFINITIONS(-DRDO_TEST_APP="${EXECUTABLE_OUTPUT_PATH}/${CMAKE_BUILD_TYPE}/rdo_test.exe")
ELSE()
    ADD_DEFINITIONS(-DRDO_TEST_APP="${EXECUTABLE_OUTPUT_PATH}/rdo_test")
ENDIF(MSVC)

ADD_DEFINITIONS(-DRDO_TEST_APP_PATH="${CMAKE_CURRENT_SOURCE_DIR}/")<commit_msg> - remove build c++ test rdo_console app : temp setting<commit_after>#==============================================================================
# Copyright (c) 2011 <NAME> <<EMAIL>>
#==============================================================================
# Cmake for RDO  STUDIO  CONSOLE  TEST
#==============================================================================

MESSAGE(STATUS "CREATE  RDO  STUDIO  CONSOLE  TEST  EXECUTABLE")

# Find Boost
IF(MSVC)
    SET(Boost_USE_STATIC_LIBS    ON)
    SET(Boost_USE_MULTITHREADED  ON)
ENDIF(MSVC)
FIND_PACKAGE(Boost COMPONENTS program_options REQUIRED)

SET(HEADER_FILES
    controller_console_options.h
    controller_console_options_config.h)

SET(SOURCE_FILES
    controller_console_options.cpp)

SET(MAIN_FILE 
    main.cpp)

ADD_EXECUTABLE(rdo_test ${MAIN_FILE} ${HEADER_FILES} ${SOURCE_FILES})

ADD_DEPENDENCIES(rdo_test rdo)
ADD_DEPENDENCIES(rdo_test rdo_utils)

TARGET_LINK_LIBRARIES(rdo_test rdo_utils)
TARGET_LINK_LIBRARIES(rdo_test ${Boost_PROGRAM_OPTIONS_LIBRARY})

IF(MSVC)
    ADD_DEFINITIONS(-DRDO_STUDIO_CONSOLE_APP="${EXECUTABLE_OUTPUT_PATH}/${CMAKE_BUILD_TYPE}/rdo.exe")
ELSE()
    ADD_DEFINITIONS(-DRDO_STUDIO_CONSOLE_APP="${EXECUTABLE_OUTPUT_PATH}/rdo")
ENDIF(MSVC)

IF(MSVC) # lotions for windows #

SOURCE_GROUP(".code" FILES
    ${MAIN_FILE})

SOURCE_GROUP(".console_options" FILES
    controller_console_options.h
    controller_console_options.cpp
    controller_console_options_config.h)

ENDIF(MSVC)

#==============================================================================
# temp
#==============================================================================

#ADD_BOOST_TEST(test_rdo_studio_console test.cpp)

#IF(MSVC)
#    ADD_DEFINITIONS(-DRDO_TEST_APP="${EXECUTABLE_OUTPUT_PATH}/${CMAKE_BUILD_TYPE}/rdo_test.exe")
#ELSE()
#    ADD_DEFINITIONS(-DRDO_TEST_APP="${EXECUTABLE_OUTPUT_PATH}/rdo_test")
#ENDIF(MSVC)

#ADD_DEFINITIONS(-DRDO_TEST_APP_PATH="${CMAKE_CURRENT_SOURCE_DIR}/")
{'fraction_non_alphanumeric': 0.2851672198110799, 'fraction_numerical': 0.0020423793719683433, 'mean_word_length': 8.698019801980198, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2490458', 'n_tokens_mistral': 1381, 'n_tokens_neox': 1270, 'n_words': 161}