This repository has been archived on 2021-04-17. You can view files and clone it, but cannot push or open issues or pull requests.
uIRC/tests/CMakeLists.txt

28 lines
974 B
CMake
Raw Normal View History

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)
target_link_libraries(tokenizer uirc)
target_link_libraries(overflow uirc)
target_link_libraries(prefixassm uirc)
target_link_libraries(msgassm 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)
if ( UIRC_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()