Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
1.11.1
-
None
Description
I'm trying to build a QBS project with Clang and to compile .cu files with "-x cuda" Clang's option. The C++ MIME type ".cu" has been set both system-wise and QtCreator-wise, but QBS ignores those files as sources. Here's the .qbs project file:
import qbs; Product { property string cuda_dir: "/opt/cuda" property string cuda_sm: "sm_52" type: "application" consoleApplication: "true" name : "appp" files: [ // .h .cpp .cu .cuh files ] Depends { name: "cpp" } cpp.cxxLanguageVersion: "c++11" cpp.cxxFlags: [ "-DGL_GLEXT_PROTOTYPES=1", "-xcuda", "--cuda-gpu-arch="+cuda_sm, "--cuda-path="+cuda_dir ] cpp.dynamicLibraries: [ "GL", "GLU", "glut", "cudart_static", "dl", "rt", "pthread" ]; cpp.includePaths: [cuda_dir + "/include"] cpp.libraryPaths: [cuda_dir + "/lib64"] Export { Depends { name: "cpp" } cpp.includePaths: [product.sourceDirectory] } }