Qt Creator:Does it support build single file only in project with CMake Project
-
wrote on 8 Sept 2016, 15:28 last edited by
Hi, All,
I know Qt Creator support to build single file from Menu "Build" -> “Build File”,
or right click one source file in project tree to build single file, but when I load
a Cmake Project, Menu “Build File” and “right click” are both disappeared.
Does it mean build single file functionality is only available for qmake?
Does cmake project support build single file, if so, how to do it?
Thanks,
Le -
Hi and welcome
Did you install and setup Cmake?
http://doc.qt.io/qtcreator/creator-project-cmake.html -
Hi and welcome
Did you install and setup Cmake?
http://doc.qt.io/qtcreator/creator-project-cmake.htmlwrote on 8 Sept 2016, 16:02 last edited by@mrjj said in Qt Creator:Does it support build single file only in project with CMake Project:
Hi and welcome
Did you install and setup Cmake?
http://doc.qt.io/qtcreator/creator-project-cmake.htmlHi,
Yes, I have installed and setup Cmake already, it can build the whole project successfully
without any problem, the only thing I need is want to compile one single file from project,
because sometimes I only want to test compiling after editing one file.
Does Qtcreator support this for cmake project?
Thanks,
Le -
Hi
I never tried it but see no reason
why not - as cmake can do all that qmake can.But cant say 100% sure it does.
Hopefully a cmake user can tell us :)
-
Hi
I never tried it but see no reason
why not - as cmake can do all that qmake can.But cant say 100% sure it does.
Hopefully a cmake user can tell us :)
-
Hi
it seems CMake might not support it.
http://stackoverflow.com/questions/38271387/compile-a-single-file-under-cmake-projectI hope im wrong :)
-
Hi
it seems CMake might not support it.
http://stackoverflow.com/questions/38271387/compile-a-single-file-under-cmake-projectI hope im wrong :)