33 lines · plain
1################################################################################2##3## omptest cmake configuration file.4## Enable support for find_package(omptest).5##6################################################################################7 8# Initialize package.9@PACKAGE_INIT@10 11# Include exported targets.12include("${CMAKE_CURRENT_LIST_DIR}/omptest-targets.cmake")13 14# Provide information, if ompTest has been built 'standalone'.15set(LIBOMPTEST_BUILD_STANDALONE "@LIBOMPTEST_BUILD_STANDALONE@")16 17# Note: The following variables are meant as a fallback.18# But eventually we may remove them in favor of linking via namespace.19 20# Set LLVM installation root directory by using exported package information.21set(LLVM_ROOT "${PACKAGE_PREFIX_DIR}")22 23# Provide header and library paths.24set(LIBOMP_HEADERS_INSTALL_PATH "${LLVM_ROOT}/@LIBOMP_HEADERS_INSTALL_PATH@")25set(LIBOMP_LIBRARY_INSTALL_PATH "${LLVM_ROOT}/@OPENMP_INSTALL_LIBDIR@")26set(omptest_INCLUDE_DIR "${LIBOMP_HEADERS_INSTALL_PATH}/omptest")27set(omptest_LIBRARY_DIR "${LIBOMP_LIBRARY_INSTALL_PATH}")28 29# Provide compiler default values.30set(LLVM_BIN_INSTALL_DIR "${LLVM_ROOT}/bin")31set(omptest_C_COMPILER "${LLVM_BIN_INSTALL_DIR}/clang")32set(omptest_CXX_COMPILER "${LLVM_BIN_INSTALL_DIR}/clang++")33