1 set(LLVM_LINK_COMPONENTS
10 # HACK: Declare a couple of source files as optionally compiled to satisfy the
11 # missing-file-checker in LLVM's weird CMake build.
12 set(LLVM_OPTIONAL_SOURCES
13 IntelJITEventListenerTest.cpp
14 OProfileJITEventListenerTest.cpp
17 if( LLVM_USE_INTEL_JITEVENTS )
18 include_directories( ${LLVM_INTEL_JITEVENTS_INCDIR} )
19 link_directories( ${LLVM_INTEL_JITEVENTS_LIBDIR} )
20 set(ProfileTestSources
21 IntelJITEventListenerTest.cpp
23 set(LLVM_LINK_COMPONENTS
24 ${LLVM_LINK_COMPONENTS}
27 endif( LLVM_USE_INTEL_JITEVENTS )
29 if( LLVM_USE_OPROFILE )
30 set(ProfileTestSources
32 OProfileJITEventListenerTest.cpp
34 set(LLVM_LINK_COMPONENTS
35 ${LLVM_LINK_COMPONENTS}
38 endif( LLVM_USE_OPROFILE )
41 JITEventListenerTest.cpp
42 JITMemoryManagerTest.cpp
49 list(APPEND JITTestsSources JITTests.def)
52 add_llvm_unittest(JITTests
57 set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)