Unsolved Qt Creator:Does it support build single file only in project with CMake Project
-
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 -
@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 :)
-
Thanks mrjj! I think there should be some unknown tricky that active this build file show/hide.
Looking forward some experienced cmake user can share with us.
Thanks,
Le -
Hi
it seems CMake might not support it.
http://stackoverflow.com/questions/38271387/compile-a-single-file-under-cmake-projectI hope im wrong :)
-
Hi, mrjj,
Thanks for your input, there is few topic to discuss this "CMake build single file", let's give this thread active to see if there is
any new breakthrough idea.
Thanks,
Le