1 function(add_llvm_unittest test_name)
3 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
4 ${LLVM_BINARY_DIR}/unittests/${test_name}/${CMAKE_BUILD_TYPE})
6 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
7 ${LLVM_BINARY_DIR}/unittests/${test_name})
9 if( NOT LLVM_BUILD_TESTS )
10 set(EXCLUDE_FROM_ALL ON)
12 add_llvm_executable(${test_name}Tests ${ARGN})
15 include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include)
17 set(LLVM_LINK_COMPONENTS
38 ADT/DAGDeltaAlgorithmTest.cpp
39 ADT/DeltaAlgorithmTest.cpp
43 ADT/ImmutableSetTest.cpp
44 ADT/SmallBitVectorTest.cpp
45 ADT/SmallStringTest.cpp
46 ADT/SmallVectorTest.cpp
47 ADT/SparseBitVectorTest.cpp
54 add_llvm_unittest(Analysis
55 Analysis/ScalarEvolutionTest.cpp
58 add_llvm_unittest(ExecutionEngine
59 ExecutionEngine/ExecutionEngineTest.cpp
63 ExecutionEngine/JIT/JITEventListenerTest.cpp
64 ExecutionEngine/JIT/JITMemoryManagerTest.cpp
65 ExecutionEngine/JIT/JITTest.cpp
66 ExecutionEngine/JIT/MultiJITTest.cpp
69 add_llvm_unittest(Support
70 Support/AllocatorTest.cpp
72 Support/CommandLineTest.cpp
73 Support/ConstantRangeTest.cpp
74 Support/LeakDetectorTest.cpp
75 Support/MathExtrasTest.cpp
76 Support/raw_ostream_test.cpp
79 Support/TypeBuilderTest.cpp
80 Support/ValueHandleTest.cpp
83 add_llvm_unittest(Transforms
84 Transforms/Utils/Cloning.cpp
87 add_llvm_unittest(VMCore
88 VMCore/ConstantsTest.cpp
89 VMCore/DerivedTypesTest.cpp
90 VMCore/InstructionsTest.cpp
91 VMCore/MetadataTest.cpp
92 VMCore/PassManagerTest.cpp
93 VMCore/VerifierTest.cpp