<commit_before>add_executable(TransformerDemo
  main.swift)
target_link_libraries(TransformerDemo PRIVATE
  TextModels)

if(CMAKE_SYSTEM_NAME STREQUAL Windows)
  add_executable(TransformerUI
    UI/Windows/main.swift)
  target_link_libraries(TransformerUI PRIVATE
    TextModels
    Foundation
    SwiftWin32
    User32)
  add_custom_command(TARGET TransformerUI POST_BUILD
    COMMAND
      ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/UI/Windows/TransformerUI.exe.manifest $<TARGET_FILE_DIR:TransformerUI>)
endif()


install(TARGETS TransformerDemo
  DESTINATION bin)
get_swift_host_arch(swift_arch)<commit_msg>build: setup dependencies for the Windows build (#372)<commit_after>add_executable(TransformerDemo
  main.swift)
target_link_libraries(TransformerDemo PRIVATE
  TextModels)

if(CMAKE_SYSTEM_NAME STREQUAL Windows)
  add_executable(TransformerUI
    UI/Windows/main.swift)
  target_link_libraries(TransformerUI PRIVATE
    TextModels
    Foundation
    SwiftWin32
    User32)
  add_custom_command(TARGET TransformerUI POST_BUILD
    COMMAND
      ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/UI/Windows/TransformerUI.exe.manifest $<TARGET_FILE_DIR:TransformerUI>
    DEPENDS
      ${CMAKE_CURRENT_SOURCE_DIR}/UI/Windows/TransformerUI.exe.manifest )
endif()


install(TARGETS TransformerDemo
  DESTINATION bin)
get_swift_host_arch(swift_arch)
{'fraction_non_alphanumeric': 0.06743185078909612, 'fraction_numerical': 0.007890961262553802, 'mean_word_length': 6.11734693877551, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '783326', 'n_tokens_mistral': 502, 'n_tokens_neox': 449, 'n_words': 70}