1foreach(t ${LLVM_TARGETS_TO_BUILD}) 2 if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${t}) 3 add_subdirectory(${t}) 4 endif() 5endforeach() 6 7set(LLVM_LINK_COMPONENTS 8 ${LLVM_TARGETS_TO_BUILD} 9 MC 10 MCDisassembler 11 Support 12 ) 13 14add_llvm_unittest(MCTests 15 Disassembler.cpp 16 DwarfLineTables.cpp 17 MCInstPrinter.cpp 18 StringTableBuilderTest.cpp 19 TargetRegistry.cpp 20 MCDisassemblerTest.cpp 21 ) 22 23