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}
26 endif( LLVM_USE_INTEL_JITEVENTS )
28 if( LLVM_USE_OPROFILE )
29 set(ProfileTestSources
31 OProfileJITEventListenerTest.cpp
33 set(LLVM_LINK_COMPONENTS
34 ${LLVM_LINK_COMPONENTS}
37 endif( LLVM_USE_OPROFILE )
40 JITEventListenerTest.cpp
41 JITMemoryManagerTest.cpp
48 list(APPEND JITTestsSources JITTests.def)
51 add_llvm_unittest(JITTests
56 set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
58 set_target_properties(JITTests PROPERTIES ENABLE_EXPORTS 1)