<commit_before># What does the toolkit need ?
#   - it needs RTT stuff
#   - it optionally needs CORBA support as well
#
# Corba-related generation: IDL, Corba-to-Orocos conversion code. This is done
# only if the user does not have disabled Corba support by calling
# #disable_corba
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${PROJECT_BINARY_DIR}/<%= Orocos::Generation::AUTOMATIC_AREA_NAME %>)
include_directories(${CMAKE_SOURCE_DIR}/<%= Orocos::Generation::AUTOMATIC_AREA_NAME %>)

include_directories(${OrocosRTT_INCLUDE_DIRS})
add_definitions(${OrocosRTT_CFLAGS_OTHER})
link_directories(${OrocosRTT_LIBRARY_DIRS})

<% if toolkit.has_opaques_with_templates? %>
include_directories(${CMAKE_SOURCE_DIR}/toolkit)
<% end %>

<% typelib_dep = [BuildDependency.new("TYPELIB", "typelib", false, true,
true)]
   Generation.cmake_pkgconfig_require(typelib_dep) %>

# Now set up the dependencies
<%= toolkit_deps = toolkit.dependencies
    Generation.cmake_pkgconfig_require(toolkit_deps) %>
<%  toolkit_deps.each do |dep_def|
        if dep_def.include && !dep_def.corba %>
set(PKG_CFLAGS ${PKG_CFLAGS} ${<%= dep_def.var_name %>_CFLAGS})
        <% end %>
    <% end %>
string(REPLACE ";" "\" \"" PKG_CFLAGS "\"${PKG_CFLAGS}\"")

# Generate the base toolkit shared library
set(libname <%= component.name %>-toolkit-${OROCOS_TARGET})
add_library(${libname} SHARED <%= component.name %>Toolkit.cpp
    <% if !toolkit.opaques.empty? %>
    <% if toolkit.has_opaques_with_templates? %>
    ${PROJECT_SOURCE_DIR}/toolkit/<%= component.name %>ToolkitUser.cpp
    <% end %><commit_msg>add the TOOLKIT_ADDITIONAL_SOURCES variable to customize the toolkit library<commit_after># What does the toolkit need ?
#   - it needs RTT stuff
#   - it optionally needs CORBA support as well
#
# Corba-related generation: IDL, Corba-to-Orocos conversion code. This is done
# only if the user does not have disabled Corba support by calling
# #disable_corba
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${PROJECT_BINARY_DIR}/<%= Orocos::Generation::AUTOMATIC_AREA_NAME %>)
include_directories(${CMAKE_SOURCE_DIR}/<%= Orocos::Generation::AUTOMATIC_AREA_NAME %>)

include_directories(${OrocosRTT_INCLUDE_DIRS})
add_definitions(${OrocosRTT_CFLAGS_OTHER})
link_directories(${OrocosRTT_LIBRARY_DIRS})

<% if toolkit.has_opaques_with_templates? %>
include_directories(${CMAKE_SOURCE_DIR}/toolkit)
<% end %>

<% typelib_dep = [BuildDependency.new("TYPELIB", "typelib", false, true,
true)]
   Generation.cmake_pkgconfig_require(typelib_dep) %>

# Now set up the dependencies
<%= toolkit_deps = toolkit.dependencies
    Generation.cmake_pkgconfig_require(toolkit_deps) %>
<%  toolkit_deps.each do |dep_def|
        if dep_def.include && !dep_def.corba %>
set(PKG_CFLAGS ${PKG_CFLAGS} ${<%= dep_def.var_name %>_CFLAGS})
        <% end %>
    <% end %>
string(REPLACE ";" "\" \"" PKG_CFLAGS "\"${PKG_CFLAGS}\"")

# Generate the base toolkit shared library
set(libname <%= component.name %>-toolkit-${OROCOS_TARGET})
add_library(${libname} SHARED <%= component.name %>Toolkit.cpp
    ${TOOLKIT_ADDITIONAL_SOURCES}
    <% if !toolkit.opaques.empty? %>
    <% if toolkit.has_opaques_with_templates? %>
    ${PROJECT_SOURCE_DIR}/toolkit/<%= component.name %>ToolkitUser.cpp
    <% end %>
{'fraction_non_alphanumeric': 0.13861085835608128, 'fraction_numerical': 0.0, 'mean_word_length': 5.957805907172996, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '3010959', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1163, 'n_words': 213}