[CMake] compiling .cpp/.cxx with CUDA compiler

Kai Germaschewski kai.germaschewski at gmail.com
Tue Jul 2 15:43:59 EDT 2019


On Tue, Jul 2, 2019 at 2:48 PM Robert Maynard <robert.maynard at kitware.com>
wrote:

> get_target_property(source_files <target> SOURCES)
> set_source_files_properties(${source_files} PROPERTIES LANGUAGE CUDA)
>

Thanks, that'll work for the time being, I can put this into a
function/macro and it'll look alright.

--Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190702/a7edbfd6/attachment.html>


More information about the CMake mailing list