xref: /llvm-project/llvm/unittests/tools/llvm-exegesis/X86/CMakeLists.txt (revision 3500d3ba1cd97df58776a79ed61e0d1946a085c2)
1add_llvm_exegesis_unittest_includes(
2  ${LLVM_MAIN_SRC_DIR}/lib/Target/X86
3  ${LLVM_BINARY_DIR}/lib/Target/X86
4  ${LLVM_MAIN_SRC_DIR}/tools/llvm-exegesis/lib
5  )
6
7add_llvm_exegesis_unittest_sources(
8  BenchmarkResultTest.cpp
9  RegisterAliasingTest.cpp
10  SchedClassResolutionTest.cpp
11  SnippetFileTest.cpp
12  SnippetGeneratorTest.cpp
13  SnippetRepetitorTest.cpp
14  SubprocessMemoryTest.cpp
15  TargetTest.cpp
16  )
17
18add_llvm_exegesis_unittest_link_components(
19  Core
20  Codegen
21  MC
22  MCParser
23  Object
24  Support
25  Symbolize
26  X86
27  )
28
29set(libs)
30if(HAVE_LIBRT)
31  list(APPEND libs rt)
32endif()
33
34add_llvm_exegesis_unittest_link_libraries(
35  LLVMExegesisX86
36  ${libs}
37  )
38