find_package(LLVM REQUIRED CONFIG)

message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")

# Include LLVM headers and add definitions
include_directories("${LLVM_INCLUDE_DIRS}")
add_definitions("${LLVM_DEFINITIONS}")

llvm_map_components_to_libnames(llvm_libs support core irreader)
