FindLLVM

find_package(LLVM [REQUIRED] [QUIET])

Find the LLVM libraries and includes.

Result Variables

Defines the following variables:

LLVM_FOUND
True if llvm found.
LLVM_INCLUDE_DIRS
Where to find llvm include files
LLVM_LIBRARY_DIRS
Where to find llvm libs
LLVM_CPPFLAGS
LLVM preprocessor flags
LLVM_LDFLAGS
LLVM linker flags.
LLVM_CXXFLAGS
LLVM c++ compiler flags
LLVM_INSTALL_PREFIX
LLVM installation prefix
LLVM_VERSION
Version string (llvm-config --version)

Hints

Set LLVM_ROOT to a directory that contains a LLVM installation.