summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/Languages/ExternalCUDA.cmake
blob: 3afa93e5568d01d53f5f18054ec65c9e9d366c53 (plain)
1
2
3
4
5
6
7
8
enable_language(C)

add_library(ext_cuda IMPORTED STATIC)
set_property(TARGET ext_cuda PROPERTY IMPORTED_LOCATION "/does_not_exist")
set_property(TARGET ext_cuda PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES "CUDA")

add_executable(main empty.c)
target_link_libraries(main ext_cuda)