2020-07-09 20:37:29 +00:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2020-07-10 16:02:23 +00:00
|
|
|
|
|
|
|
add_executable(tokenizer tokenizer.c)
|
2020-07-20 21:40:35 +00:00
|
|
|
add_executable(overflow overflow.c)
|
|
|
|
add_executable(prefixassm prefixassm.c)
|
|
|
|
add_executable(msgassm msgassm.c)
|
2020-08-17 17:16:55 +00:00
|
|
|
add_executable(numericmds numericmds.c)
|
2020-08-18 19:20:45 +00:00
|
|
|
add_executable(notrail notrail.c)
|
|
|
|
add_executable(spacedargs spacedargs.c)
|
2020-07-10 16:02:23 +00:00
|
|
|
|
|
|
|
target_link_libraries(tokenizer uirc)
|
2020-07-20 21:40:35 +00:00
|
|
|
target_link_libraries(overflow uirc)
|
|
|
|
target_link_libraries(prefixassm uirc)
|
|
|
|
target_link_libraries(msgassm uirc)
|
2020-08-17 17:16:55 +00:00
|
|
|
target_link_libraries(numericmds uirc)
|
2020-08-18 19:20:45 +00:00
|
|
|
target_link_libraries(notrail uirc)
|
|
|
|
target_link_libraries(spacedargs uirc)
|
2020-07-10 16:02:23 +00:00
|
|
|
|
|
|
|
add_test(NAME Tokenizer COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tokenizer)
|
2020-07-20 21:40:35 +00:00
|
|
|
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)
|
2020-08-17 17:16:55 +00:00
|
|
|
add_test(NAME NumericCmds COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/numericmds)
|
2020-08-18 19:20:45 +00:00
|
|
|
add_test(NAME IncorrectTrailing COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/notrail)
|
|
|
|
add_test(NAME SpacedArguments COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/spacedargs)
|
2020-07-11 21:52:50 +00:00
|
|
|
|
2020-07-26 11:41:08 +00:00
|
|
|
if ( IRCV3 )
|
2020-07-11 21:52:50 +00:00
|
|
|
add_executable(tagtok tagtok.c)
|
|
|
|
add_executable(tagassm tagassm.c)
|
|
|
|
|
|
|
|
target_link_libraries(tagtok uirc)
|
|
|
|
target_link_libraries(tagassm uirc)
|
|
|
|
|
2020-07-10 16:02:23 +00:00
|
|
|
add_test(NAME TagParser COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tagtok)
|
|
|
|
add_test(NAME TagAssembler COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tagassm)
|
2020-07-11 21:52:50 +00:00
|
|
|
endif()
|