[lit] Remove LitTestCase
[llvm-complete.git] / tools / llvm-exegesis / CMakeLists.txt
bloba59e1b74024e3d6487bf6f26e4a17e4753aaef09
1 set(LLVM_LINK_COMPONENTS
2   MCParser
3   Support
4   native
5   )
7 add_llvm_tool(llvm-exegesis
8   llvm-exegesis.cpp
9   )
11 add_subdirectory(lib)
13 # Link the native exegesis target if compiled and on the right host.
14 if ((LLVM_TARGETS_TO_BUILD MATCHES "${LLVM_NATIVE_ARCH}") AND (LLVM_EXEGESIS_TARGETS MATCHES "${LLVM_NATIVE_ARCH}"))
15   set(LLVM_EXEGESIS_NATIVE_ARCH "${LLVM_NATIVE_ARCH}")
16 endif()
18 if (LLVM_EXEGESIS_NATIVE_ARCH)
19   set(LLVM_EXEGESIS_NATIVE_TARGET "LLVMExegesis${LLVM_EXEGESIS_NATIVE_ARCH}")
20   set_source_files_properties(llvm-exegesis.cpp PROPERTIES COMPILE_FLAGS "-DLLVM_EXEGESIS_INITIALIZE_NATIVE_TARGET=Initialize${LLVM_EXEGESIS_NATIVE_ARCH}ExegesisTarget")
21 endif()
23 target_link_libraries(llvm-exegesis PRIVATE
24   LLVMExegesis
25   ${LLVM_EXEGESIS_NATIVE_TARGET}
26   )