brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · c43ec17 Raw
43 lines · plain
1add_custom_target(OrcRTUnitTests)2set_target_properties(OrcRTUnitTests PROPERTIES FOLDER "orc-rt/Tests")3 4if (NOT TARGET llvm_gtest)5  message(WARNING "orc-rt unittests disabled due to GTest being unavailable; "6                  "Try LLVM_INSTALL_GTEST=ON for the LLVM build")7  return ()8endif ()9 10function(add_orc_rt_unittest test_dirname)11  add_unittest(OrcRTUnitTests ${test_dirname} ${ARGN})12endfunction()13 14add_orc_rt_unittest(CoreTests15  AllocActionTest.cpp16  BitmaskEnumTest.cpp17  CallableTraitsHelperTest.cpp18  EndianTest.cpp19  ErrorTest.cpp20  ExecutorAddressTest.cpp21  IntervalMapTest.cpp22  IntervalSetTest.cpp23  MathTest.cpp24  MemoryFlagsTest.cpp25  RTTITest.cpp26  ScopeExitTest.cpp27  SessionTest.cpp28  SimpleNativeMemoryMapTest.cpp29  SimplePackedSerializationTest.cpp30  SPSAllocActionTest.cpp31  SPSMemoryFlagsTest.cpp32  SPSWrapperFunctionTest.cpp33  SPSWrapperFunctionBufferTest.cpp34  ThreadPoolTaskDispatcherTest.cpp35  WrapperFunctionBufferTest.cpp36  bind-test.cpp37  bit-test.cpp38  move_only_function-test.cpp39  span-test.cpp40  DISABLE_LLVM_LINK_LLVM_DYLIB41  )42target_link_libraries(CoreTests PRIVATE orc-rt-executor)43