<commit_before>cmake_minimum_required(VERSION 2.8.11)

option(
    ENABLE_CCACHE
    "Should ccache be used?"
    OFF
)
message(STATUS "option ENABLE_CCACHE=" ${ENABLE_CCACHE})

if(ENABLE_CCACHE)
    find_program(CCACHE_FOUND ccache)
    if(CCACHE_FOUND)
        set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_FOUND})
        set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_FOUND})
    else(CCACHE_FOUND)
        message(WARNING "ccache was not found. Fall-back to default compiler.")
    endif(CCACHE_FOUND)
endif(ENABLE_CCACHE)

# this project includes all test subdirectories
project(joynr-tests)
add_subdirectory(dummyKeychain)
add_subdirectory(inter-language-test)
add_subdirectory(performance-test)
add_subdirectory(robustness-test)
add_subdirectory(robustness-test-env)
add_subdirectory(system-integration-test/sit-cpp-app)<commit_msg>[C++] Added compiler flags to tests/CMakeLists.txt<commit_after>cmake_minimum_required(VERSION 2.8.11)

option(
    ENABLE_CCACHE
    "Should ccache be used?"
    OFF
)
message(STATUS "option ENABLE_CCACHE=" ${ENABLE_CCACHE})

if(ENABLE_CCACHE)
    find_program(CCACHE_FOUND ccache)
    if(CCACHE_FOUND)
        set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_FOUND})
        set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_FOUND})
    else(CCACHE_FOUND)
        message(WARNING "ccache was not found. Fall-back to default compiler.")
    endif(CCACHE_FOUND)
endif(ENABLE_CCACHE)

######## DEFAULT COMPILER FLAGS #############

set(CMAKE_CXX_STANDARD 14)
set(CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# this project includes all test subdirectories
project(joynr-tests)
add_subdirectory(dummyKeychain)
add_subdirectory(inter-language-test)
add_subdirectory(performance-test)
add_subdirectory(robustness-test)
add_subdirectory(robustness-test-env)
add_subdirectory(system-integration-test/sit-cpp-app)
{'fraction_non_alphanumeric': 0.09679089026915114, 'fraction_numerical': 0.005175983436853002, 'mean_word_length': 6.185873605947956, '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': '3584700', 'n_tokens_mistral': 687, 'n_tokens_neox': 685, 'n_words': 115}