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-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-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-07-11 21:52:50 +00:00
|
|
|
|
|
|
|
if ( UIRC_IRCV3 )
|
|
|
|
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()
|