Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. how to include cmake project into my qmake project
QtWS25 Last Chance

how to include cmake project into my qmake project

Scheduled Pinned Locked Moved Installation and Deployment
cmakeqmake
4 Posts 3 Posters 2.9k Views
  • 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.
  • D Offline
    D Offline
    Dmitriy Shmykov
    wrote on 28 Aug 2015, 14:33 last edited by
    #1

    How to include cmake project into my qmake project as a subproject?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on 28 Aug 2015, 19:15 last edited by
      #2

      It might be best to use CMake for your project instead of qmake. I use CMake for my Qt projects that make use of large CMake-based projects (ITK and VTK) but don't have them as subprojects. Here's how to use CMake with Qt and it's also supported by QtCreator.

      D 1 Reply Last reply 31 Aug 2015, 14:09
      1
      • M mchinand
        28 Aug 2015, 19:15

        It might be best to use CMake for your project instead of qmake. I use CMake for my Qt projects that make use of large CMake-based projects (ITK and VTK) but don't have them as subprojects. Here's how to use CMake with Qt and it's also supported by QtCreator.

        D Offline
        D Offline
        Dmitriy Shmykov
        wrote on 31 Aug 2015, 14:09 last edited by
        #3

        @mchinand thank you for the answer but you have mentioned well known things. In my case there's a big qmake project (QtCreator project) and I'm making plugin for it that should depend on the opensource library that has cmake project.

        For me developing QtCreator plugin using qmake is mush more suitable than with cmake. With cmake you'll have to manage all the QtCreator dependencies youself instead of simply including pri-files.

        There's QBS for building QtCreator related things. So my question can be transformed like this. Is there a way to include cmake project into QBS-project?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          maero
          wrote on 9 Aug 2019, 14:43 last edited by
          #4

          @Dmitriy-Shmykov did you find out a way to do it?
          Thanks

          1 Reply Last reply
          0

          • Login

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