1 set(PLUGINS_TEST_COMMON omptarget)
2 set(PLUGINS_TEST_SOURCES NextgenPluginsTest.cpp)
3 set(PLUGINS_TEST_INCLUDE ${LIBOMPTARGET_INCLUDE_DIR})
5 foreach(PLUGIN IN LISTS LIBOMPTARGET_TESTED_PLUGINS)
6 message(STATUS "Building plugin unit tests for ${PLUGIN}")
7 add_libompt_unittest("${PLUGIN}.unittests" ${PLUGINS_TEST_SOURCES})
8 add_dependencies("${PLUGIN}.unittests" ${PLUGINS_TEST_COMMON} ${PLUGIN})
9 target_link_libraries("${PLUGIN}.unittests" PRIVATE ${PLUGINS_TEST_COMMON} ${PLUGIN})
10 target_include_directories("${PLUGIN}.unittests" PRIVATE ${PLUGINS_TEST_INCLUDE})