Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator:Does it support build single file only in project with CMake Project
Forum Updated to NodeBB v4.3 + New Features

Qt Creator:Does it support build single file only in project with CMake Project

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtcreator4
7 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vakano
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome
      Did you install and setup Cmake?
      http://doc.qt.io/qtcreator/creator-project-cmake.html

      V 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi and welcome
        Did you install and setup Cmake?
        http://doc.qt.io/qtcreator/creator-project-cmake.html

        V Offline
        V Offline
        vakano
        wrote on last edited by
        #3

        @mrjj

        @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.html

        Hi,

        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

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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 :)

          V 1 Reply Last reply
          0
          • mrjjM mrjj

            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 :)

            V Offline
            V Offline
            vakano
            wrote on last edited by
            #5

            @mrjj

            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

            1 Reply Last reply
            1
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi
              it seems CMake might not support it.
              http://stackoverflow.com/questions/38271387/compile-a-single-file-under-cmake-project

              I hope im wrong :)

              V 1 Reply Last reply
              0
              • mrjjM mrjj

                Hi
                it seems CMake might not support it.
                http://stackoverflow.com/questions/38271387/compile-a-single-file-under-cmake-project

                I hope im wrong :)

                V Offline
                V Offline
                vakano
                wrote on last edited by
                #7

                @mrjj

                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

                1 Reply Last reply
                1

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved