<commit_before>set(PROTOCOLS protocol_null.c)
set(FASTD_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR} ${FASTD_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR})
set(FASTD_LIBS "")

if(WITH_PROTOCOL_ECFXP)
  list(APPEND PROTOCOLS protocol_ec25519_fhmqvc_xsalsa20_poly1305.c)
  list(APPEND FASTD_INCLUDES ${UECC_INCLUDE_DIR} ${NACL_INCLUDE_DIR})
  list(APPEND FASTD_LIBS ${UECC_LIBRARY} ${NACL_LIBRARY})
endif(WITH_PROTOCOL_ECFXP)

include_directories(${FASTD_INCLUDES})

FLEX_TARGET(fastd_config_lex config.l ${CMAKE_CURRENT_BINARY_DIR}/config.ll.c)
BISON_TARGET(fastd_config_parse config.y ${CMAKE_CURRENT_BINARY_DIR}/config.yy.c)

add_executable(fastd
  fastd.c
  config.c
  handshake.c
  peer.c
  printf.c
  queue.c
  random.c
  task.c
  ${FLEX_fastd_config_lex_OUTPUTS}
  ${BISON_fastd_config_parse_OUTPUTS}
  ${PROTOCOLS}
)
target_link_libraries(fastd rt ${FASTD_LIBS})<commit_msg>Add install command<commit_after>set(PROTOCOLS protocol_null.c)
set(FASTD_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR} ${FASTD_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR})
set(FASTD_LIBS "")

if(WITH_PROTOCOL_ECFXP)
  list(APPEND PROTOCOLS protocol_ec25519_fhmqvc_xsalsa20_poly1305.c)
  list(APPEND FASTD_INCLUDES ${UECC_INCLUDE_DIR} ${NACL_INCLUDE_DIR})
  list(APPEND FASTD_LIBS ${UECC_LIBRARY} ${NACL_LIBRARY})
endif(WITH_PROTOCOL_ECFXP)

include_directories(${FASTD_INCLUDES})

FLEX_TARGET(fastd_config_lex config.l ${CMAKE_CURRENT_BINARY_DIR}/config.ll.c)
BISON_TARGET(fastd_config_parse config.y ${CMAKE_CURRENT_BINARY_DIR}/config.yy.c)

add_executable(fastd
  fastd.c
  config.c
  handshake.c
  peer.c
  printf.c
  queue.c
  random.c
  task.c
  ${FLEX_fastd_config_lex_OUTPUTS}
  ${BISON_fastd_config_parse_OUTPUTS}
  ${PROTOCOLS}
)
target_link_libraries(fastd rt ${FASTD_LIBS})

install(TARGETS fastd RUNTIME DESTINATION sbin)
{'fraction_non_alphanumeric': 0.1029658645775042, 'fraction_numerical': 0.012311135982092894, 'mean_word_length': 8.169230769230769, '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': '722590', 'n_tokens_mistral': 823, 'n_tokens_neox': 761, 'n_words': 90}