[Alignment] Migrate Attribute::getWith(Stack)Alignment
[llvm-core.git] / unittests / tools / llvm-exegesis / CMakeLists.txt
blobd6d2a2d743cbb3c15c413574f8e1e83d4925de5e
1 include_directories(
2   ${LLVM_MAIN_SRC_DIR}/tools/llvm-exegesis/lib
3   )
5 set(LLVM_LINK_COMPONENTS
6   MC
7   MCParser
8   Object
9   Support
10   Symbolize
11   )
13 add_llvm_unittest(LLVMExegesisTests
14   BenchmarkRunnerTest.cpp
15   ClusteringTest.cpp
16   PerfHelperTest.cpp
17   RegisterValueTest.cpp
18   )
19 target_link_libraries(LLVMExegesisTests PRIVATE LLVMExegesis)
21 if(LLVM_TARGETS_TO_BUILD MATCHES "X86")
22   add_subdirectory(X86)
23 endif()
24 if(LLVM_TARGETS_TO_BUILD MATCHES "ARM")
25         add_subdirectory(ARM)
26 endif()
27 if(LLVM_TARGETS_TO_BUILD MATCHES "AArch64")
28   add_subdirectory(AArch64)
29 endif()
30 if(LLVM_TARGETS_TO_BUILD MATCHES "PowerPC")
31   add_subdirectory(PowerPC)
32 endif()
33 if(LLVM_TARGETS_TO_BUILD MATCHES "Mips")
34   add_subdirectory(Mips)
35 endif()