include_directories(
  ${LLVM_MAIN_SRC_DIR}/lib/Target/ARM
  ${LLVM_BINARY_DIR}/lib/Target/ARM
  )

set(LLVM_LINK_COMPONENTS
  ARMCodeGen
  ARMDesc
  ARMInfo
  CodeGen
  MC
  SelectionDAG
  Support
  Target
)

add_llvm_unittest(ARMTests
  MachineInstrTest.cpp
  )

include_directories(
  ${LLVM_MAIN_SRC_DIR}/lib/Target/ARM
  ${LLVM_BINARY_DIR}/lib/Target/ARM
  )

set(LLVM_LINK_COMPONENTS
  ARMCodeGen
  ARMDesc
  ARMInfo
  CodeGen
  GlobalISel
  MC
  SelectionDAG
  Support
  Target
)

add_llvm_unittest(ARMTests
  MachineInstrTest.cpp
  )

Add dependency on GlobalISel for unit tests to fix shared libs build
[ARM] Add dependency on GlobalISel for unit tests to fix shared libs build

The unit test uses GlobalISel but the dependency is not listed in the
CMakeLists.txt file which causes failures in shared libs build with GCC.

This just adds the dependency.

Differential revision: https://reviews.llvm.org/D69064


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@375346 91177308-0d34-0410-b5e6-96231b3b80d8
