| 1 |
if(LIBOMP_OMPD_SUPPORT) |
| 2 |
|
| 3 |
if(NOT OPENMP_TEST_COMPILER_ID STREQUAL "Clang") |
| 4 |
message(STATUS "LIBOMPD: Can only test with Clang compiler") |
| 5 |
message(WARNING "LIBOMPD: The check-libompd target will not be available!") |
| 6 |
return() |
| 7 |
endif() |
| 8 |
|
| 9 |
set(PYTHON_PLUGIN ${ompd_BINARY_DIR}/gdb-plugin/python-module) |
| 10 |
|
| 11 |
# Configure the lit.site.cfg.in file |
| 12 |
set(AUTO_GEN_COMMENT "## Autogenerated by libomp configuration.\n# Do not edit!") |
| 13 |
configure_file(lit.site.cfg.in lit.site.cfg @ONLY) |
| 14 |
add_openmp_testsuite(check-ompd "Running OMPD tests" |
| 15 |
${CMAKE_CURRENT_BINARY_DIR} |
| 16 |
DEPENDS omp ompd ompdModule ompd_gdb_plugin) |
| 17 |
|
| 18 |
endif() |