<commit_before>find_package(CTK REQUIRED)

include(${QT_USE_FILE})
include(${CTK_USE_FILE})

set(src_files PluginGenerator.cpp)

qt4_add_resources(src_files plugin_template.qrc project_template.qrc)

add_executable(PluginGenerator ${src_files})
target_link_libraries(PluginGenerator ${CTK_LIBRARIES} ${QT_LIBRARIES})

# subproject support
add_dependencies(MITK-CoreUI PluginGenerator)

# Test the plugin generator
include(mitkTestPluginGenerator)<commit_msg>Added custom target to start a cmd shell for the PluginGenerator.<commit_after>find_package(CTK REQUIRED)

include(${QT_USE_FILE})
include(${CTK_USE_FILE})

set(src_files PluginGenerator.cpp)

qt4_add_resources(src_files plugin_template.qrc project_template.qrc)

add_executable(PluginGenerator ${src_files})
target_link_libraries(PluginGenerator ${CTK_LIBRARIES} ${QT_LIBRARIES})

# subproject support
add_dependencies(MITK-CoreUI PluginGenerator)

if(WIN32)
  file(TO_NATIVE_PATH "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}" native_runtime_dir)
  add_custom_target(NewPlugin start "MITK PluginGenerator" /D "${native_runtime_dir}" cmd /K PluginGenerator.exe -h
                    DEPENDS PluginGenerator)
endif()

# Test the plugin generator
include(mitkTestPluginGenerator)
{'fraction_non_alphanumeric': 0.09069020866773676, 'fraction_numerical': 0.0032102728731942215, 'mean_word_length': 8.818897637795276, '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': '5703441', 'n_tokens_mistral': 430, 'n_tokens_neox': 402, 'n_words': 72}