<commit_before>#  Robot Testing Framework
#  Copyright: (C) 2015 iCub Facility, Istituto Italiano di Tecnologia
#  Authors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
#
#  Copy Policy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
#

cmake_minimum_required(VERSION 2.8.9)
project(RTF)

include(CMakeDependentOption)

# Pick up our CMake scripts - they are all in the conf subdirectory.
set(RTF_MODULE_PATH ${PROJECT_SOURCE_DIR}/conf)
set(CMAKE_MODULE_PATH ${RTF_MODULE_PATH})

# include version number
include(RTFVersion)

# Make documentation target, documentation goes in
#doc subdirectory of build.
include(RTFDoc)

# include some helper functions
include(InstallBasicPackageFiles)
include(GNUInstallDirs)
include (GenerateExportHeader)


# add some property to collect some information about
# what have been built
set_property(GLOBAL PROPERTY RTF_TREE_INCLUDE_DIRS)
set_property(GLOBAL PROPERTY RTF_LIBS)

# add some internally used properties (not for intalling or exporting)
set_property(GLOBAL PROPERTY RTF_INTERNAL_INCLUDE_DIRS)
set_property(GLOBAL PROPERTY RTF_INTERNAL_LIBS)
set_property(GLOBAL PROPERTY RTF_INTERNAL_DEFS)



# setting options
option (ENABLE_PLUGIN "Enable plugins" ON)
option (ENABLE_LUA_PLUGIN "Enable Lua plugins" OFF)
option (ENABLE_PYTHON_PLUGIN "Enable Python plugins" OFF)
option (ENABLE_RUBY_PLUGIN "Enable Ruby plugins" OFF)
option (ENABLE_MIDDLEWARE_PLUGINS "Enable middleware dependent plugins" OFF)
option (BUILD_EXAMPLES "Build examples" ON)
option (BUILD_TESTRUNNER "Build testrunner utility" ON)
option (ENABLE_WEB_LISTENER "Enable web listener" OFF)


#########################################################################
# Control where libraries and executables are placed during the build
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")

if(BUILD_TESTRUNNER)
    set_property(CACHE ENABLE_PLUGIN PROPERTY VALUE ON)
endif()

# adding directories
add_subdirectory(extern)
add_subdirectory(src)
add_subdirectory(examples)


# installation
set(BUILD_RTF_INCLUDEDIR ${CMAKE_SOURCE_DIR}/src/rtf/include)
set(INSTALL_RTF_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
set(BUILD_RTF_DLL_INCLUDEDIR ${CMAKE_SOURCE_DIR}/src/plugins/dll/include)
set(INSTALL_RTF_DLL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include/dll)
set(BUILD_RTF_LUA_INCLUDEDIR ${CMAKE_SOURCE_DIR}/src/plugins/lua/include)
set(INSTALL_RTF_LUA_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include/lua)
set(BUILD_RTF_PYTHON_INCLUDEDIR ${CMAKE_SOURCE_DIR}/src/plugins/python/include)
set(INSTALL_RTF_PYTHON_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include/python)
set(BUILD_RTF_RUBY_INCLUDEDIR ${CMAKE_SOURCE_DIR}/src/plugins/ruby/include)
set(INSTALL_RTF_RUBY_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include/ruby)<commit_msg>[cmake] fix install include directories<commit_after>#  Robot Testing Framework
#  Copyright: (C) 2015 iCub Facility, Istituto Italiano di Tecnologia
#  Authors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
#
#  Copy Policy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
#

cmake_minimum_required(VERSION 2.8.9)
project(RTF)

include(CMakeDependentOption)

# Pick up our CMake scripts - they are all in the conf subdirectory.
set(RTF_MODULE_PATH ${PROJECT_SOURCE_DIR}/conf)
set(CMAKE_MODULE_PATH ${RTF_MODULE_PATH})

# include version number
include(RTFVersion)

# Make documentation target, documentation goes in
#doc subdirectory of build.
include(RTFDoc)

# include some helper functions
include(InstallBasicPackageFiles)
include(GNUInstallDirs)
include (GenerateExportHeader)


# add some property to collect some information about
# what have been built
set_property(GLOBAL PROPERTY RTF_TREE_INCLUDE_DIRS)
set_property(GLOBAL PROPERTY RTF_LIBS)

# add some internally used properties (not for intalling or exporting)
set_property(GLOBAL PROPERTY RTF_INTERNAL_INCLUDE_DIRS)
set_property(GLOBAL PROPERTY RTF_INTERNAL_LIBS)
set_property(GLOBAL PROPERTY RTF_INTERNAL_DEFS)



# setting options
option (ENABLE_PLUGIN "Enable plugins" ON)
option (ENABLE_LUA_PLUGIN "Enable Lua plugins" OFF)
option (ENABLE_PYTHON_PLUGIN "Enable Python plugins" OFF)
option (ENABLE_RUBY_PLUGIN "Enable Ruby plugins" OFF)
option (ENABLE_MIDDLEWARE_PLUGINS "Enable middleware dependent plugins" OFF)
option (BUILD_EXAMPLES "Build examples" ON)
option (BUILD_TESTRUNNER "Build testrunner utility" ON)
option (ENABLE_WEB_LISTENER "Enable web listener" OFF)


#########################################################################
# Control where libraries and executables are placed during the build
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")

if(BUILD_TESTRUNNER)
    set_property(CACHE ENABLE_PLUGIN PROPERTY VALUE ON)
endif()

# adding directories
add_subdirectory(extern)
add_subdirectory(src)
add_subdirectory(examples)


# installation
set(BUILD_RTF_INCLUDEDIR ${CMAKE_SOURCE_DIR}/src/rtf/include)
set(INSTALL_RTF_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
set(BUILD_RTF_DLL_INCLUDEDIR ${CMAKE_SOURCE_DIR}/src/plugins/dll/include)
set(INSTALL_RTF_DLL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
set(BUILD_RTF_LUA_INCLUDEDIR ${CMAKE_SOURCE_DIR}/src/plugins/lua/include)
set(INSTALL_RTF_LUA_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
set(BUILD_RTF_PYTHON_INCLUDEDIR ${CMAKE_SOURCE_DIR}/src/plugins/python/include)
set(INSTALL_RTF_PYTHON_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
set(BUILD_RTF_RUBY_INCLUDEDIR ${CMAKE_SOURCE_DIR}/src/plugins/ruby/include)
set(INSTALL_RTF_RUBY_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
{'fraction_non_alphanumeric': 0.10806174957118353, 'fraction_numerical': 0.0030874785591766723, 'mean_word_length': 9.00171526586621, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3339507', 'n_tokens_mistral': 2075, 'n_tokens_neox': 1959, 'n_words': 421}