cmake_minimum_required(VERSION 3.16) add_executable(tokenizer tokenizer.c) add_executable(overflow overflow.c) add_executable(prefixassm prefixassm.c) add_executable(msgassm msgassm.c) add_executable(numericmds numericmds.c) add_executable(notrail notrail.c) add_executable(spacedargs spacedargs.c) target_link_libraries(tokenizer uirc) target_link_libraries(overflow uirc) target_link_libraries(prefixassm uirc) target_link_libraries(msgassm uirc) target_link_libraries(numericmds uirc) target_link_libraries(notrail uirc) target_link_libraries(spacedargs uirc) add_test(NAME Tokenizer COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tokenizer) add_test(NAME Overflow COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/overflow) add_test(NAME PrefixAssembler COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/prefixassm) add_test(NAME MessageAssembler COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/msgassm) add_test(NAME NumericCmds COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/numericmds) add_test(NAME IncorrectTrailing COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/notrail) add_test(NAME SpacedArguments COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/spacedargs) if ( IRCV3 ) add_executable(tagtok tagtok.c) add_executable(tagassm tagassm.c) target_link_libraries(tagtok uirc) target_link_libraries(tagassm uirc) add_test(NAME TagParser COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tagtok) add_test(NAME TagAssembler COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tagassm) endif()