You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
598 B

set(langs C CXX)
if(NOT CMAKE_GENERATOR STREQUAL "Ninja")
list(APPEND langs Fortran)
endif()
foreach(lang IN LISTS langs)
if(CMAKE_${lang}_COMPILER)
add_test(NAME FindOpenACC.Test${lang} COMMAND
${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
--build-and-test
"${CMake_SOURCE_DIR}/Tests/FindOpenACC/${lang}Test"
"${CMake_BINARY_DIR}/Tests/FindOpenACC/${lang}Test"
${build_generator_args}
--build-project TestFindOpenACC
--build-options ${build_options}
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)
endif()
endforeach()