• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# CMakeLists.txt file for unit testing OpenMP offloading runtime library.
2if(NOT OPENMP_TEST_COMPILER_ID STREQUAL "Clang" OR
3   OPENMP_TEST_COMPILER_VERSION VERSION_LESS 6.0.0)
4  libomptarget_say("Can only test with Clang compiler in version 6.0.0 or later.")
5  libomptarget_warning_say("The check-libomptarget target will not be available!")
6  return()
7endif()
8
9if(LIBOMPTARGET_ENABLE_DEBUG)
10  set(LIBOMPTARGET_DEBUG True)
11else()
12  set(LIBOMPTARGET_DEBUG False)
13endif()
14
15add_openmp_testsuite(check-libomptarget "Running libomptarget tests" ${CMAKE_CURRENT_BINARY_DIR} DEPENDS omptarget omp ${LIBOMPTARGET_TESTED_PLUGINS})
16
17# Configure the lit.site.cfg.in file
18set(AUTO_GEN_COMMENT "## Autogenerated by libomptarget configuration.\n# Do not edit!")
19configure_file(lit.site.cfg.in lit.site.cfg @ONLY)
20