Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

CMake CUDA QTCreator



  • OK so i setup a cmake project in QTCreator and my cuda program compiles correctly.
    But I get a warning: This file is not part of any project. The code model might have issues parsing this file properly.

    also qt creator goes not give any include headers in the auto complete.

    cmake tells me this is enough but i d like to get atlest come kind of code completion. can i fix this in any way?
    link text

    this is the contents of my cmake file

    cmake_minimum_required(VERSION 3.17)
    
    project(cutest LANGUAGES CUDA)
    add_executable(cutest main.cu)
    
    set_target_properties(
        cutest
        PROPERTIES
        CUDA_SEPARABLE_COMPILATION ON)