1 set(LLVM_LINK_COMPONENTS
8 set(mca_root ${LLVM_MAIN_SRC_DIR}/tools/llvm-mca)
11 ${CMAKE_CURRENT_SOURCE_DIR}
15 # Right now we only need SummaryView.
19 list(TRANSFORM mca_views_sources PREPEND "${mca_root}/Views/")
26 function(add_llvm_mca_unittest_includes)
27 set(mca_includes ${mca_includes} ${ARGV} PARENT_SCOPE)
30 function(add_llvm_mca_unittest_sources)
32 list(TRANSFORM sources PREPEND "${CMAKE_CURRENT_LIST_DIR}/")
33 set(mca_sources ${mca_sources} ${sources} PARENT_SCOPE)
36 function(add_llvm_mca_unittest_link_components comps)
37 set(LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS} ${ARGV} PARENT_SCOPE)
40 if(LLVM_TARGETS_TO_BUILD MATCHES "X86")
41 include(X86/CMakeLists.txt)
44 list(REMOVE_DUPLICATES LLVM_LINK_COMPONENTS)
46 include_directories(${mca_includes})
48 add_llvm_target_unittest(LLVMMCATests