1include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. ) 2 3if( HAVE_LIBDL ) 4 set(LLVM_INTEL_JIT_LIBS ${CMAKE_DL_LIBS}) 5endif() 6 7set(LLVM_INTEL_JIT_LIBS ${PTHREAD_LIB} ${LLVM_INTEL_JIT_LIBS}) 8 9 10add_llvm_library(LLVMIntelJITEvents 11 IntelJITEventListener.cpp 12 jitprofiling.c 13 14 LINK_LIBS ${LLVM_INTEL_JIT_LIBS} 15) 16 17add_dependencies(LLVMIntelJITEvents LLVMCodeGen) 18