1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00
llvm-mirror/unittests/MC/CMakeLists.txt
Ram Nalamothu eae9146bb3 Add AMDGPU MC unittests only when AMDGPU target is being built
Fixes the build failures introduced by 24698e526f619271705fe72bcaa928be9bc82484
2020-03-23 12:11:07 -04:00

22 lines
370 B
CMake

foreach(t ${LLVM_TARGETS_TO_BUILD})
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${t})
add_subdirectory(${t})
endif()
endforeach()
set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
MC
MCDisassembler
Support
)
add_llvm_unittest(MCTests
Disassembler.cpp
DwarfLineTables.cpp
MCInstPrinter.cpp
StringTableBuilderTest.cpp
TargetRegistry.cpp
)