[llvm-exegesis][NFC] Rewrite of the YAML serialization.
[llvm-core.git] / unittests / tools / llvm-exegesis / CMakeLists.txt
blob1b37316104117420b73b9aa4fa8415b531f2c450
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()