1 set(LLVM_LINK_COMPONENTS
9 # HACK: Declare a couple of source files as optionally compiled to satisfy the
10 # missing-file-checker in LLVM's weird CMake build.
11 set(LLVM_OPTIONAL_SOURCES
12 IntelJITEventListenerTest.cpp
13 OProfileJITEventListenerTest.cpp
16 if( LLVM_USE_INTEL_JITEVENTS )
17 set(ProfileTestSources
18 IntelJITEventListenerTest.cpp
20 set(LLVM_LINK_COMPONENTS
21 ${LLVM_LINK_COMPONENTS}
24 endif( LLVM_USE_INTEL_JITEVENTS )
26 if( LLVM_USE_OPROFILE )
27 set(ProfileTestSources
29 OProfileJITEventListenerTest.cpp
31 set(LLVM_LINK_COMPONENTS
32 ${LLVM_LINK_COMPONENTS}
35 endif( LLVM_USE_OPROFILE )
38 JITEventListenerTest.cpp
39 JITMemoryManagerTest.cpp
46 list(APPEND JITTestsSources JITTests.def)
49 add_llvm_unittest(JITTests
54 set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)