blob: 37255b52c70180a8e99a4392d4fc87f43a45641a [file] [log] [blame]
set(LLVM_LINK_COMPONENTS
CodeGen
Core
Support)
set(GodumpSpecTestSources
ParserTests.cpp
TokenizerTests.cpp)
add_gobackend_unittest(GoDumpSpecTests
${GodumpSpecTestSources})
set(tokenizer_src_dir "${GOLLVM_SOURCE_DIR}/libgo/godumpspec/mtokenizer")
set(parser_src_dir "${GOLLVM_SOURCE_DIR}/libgo/godumpspec/mparser")
include_directories(${unittest_testutils_src})
include_directories(${tokenizer_src_dir})
include_directories(${parser_src_dir})
target_link_libraries(GoDumpSpecTests
PRIVATE
GoDumpSpecMacroParser
GoDumpSpecMacroTokenizer
GoUnitTestUtils)