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. static QT5 and CMake 3.x
QtWS25 Last Chance

static QT5 and CMake 3.x

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 884 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.
  • SoerenS Offline
    SoerenS Offline
    Soeren
    wrote on last edited by
    #1

    Hi everybody
    I am developing Qt5 apps within VS2013 and for creating the project files I am using cmake 3.x. As long as using the non static version of Qt5 everyting works very well. The usage of the build in macros results in correct vcproj files.
    But using the static Qt5 (runtime+Qt) ends up in a mess. Links errors...

    Created project files with qmake for the same project contain a lot more (third party) dependencys.

    Thus is there a way to get static Qt and cmake to run fine?

    All I found was this:
    https://cmake.org/pipermail/cmake/2015-March/060069.html

    That means extend the cmake files by myself.

    Best regards
    SirAnn

    1 Reply Last reply
    0
    • CharbyC Offline
      CharbyC Offline
      Charby
      wrote on last edited by
      #2

      You can have look to this video of Mike Krus from Kdab explaining a bit of the QMake "magic" from time 0:27 to 0:30. Basically QMake is generating for you the cpp files (the one names "...._import.cpp" this is what you will have to do by yourself with CMake.

      1 Reply Last reply
      0
      • SoerenS Offline
        SoerenS Offline
        Soeren
        wrote on last edited by Soeren
        #3

        sure this is the correct video link?

        Ok, but how to add alle the extra preprocessor defines and further 3rd party libraries? Is there anyone out there who has a working CMakeLists.txt file for a VC2013 project that links statically to static Qt with static runtime?

        Really no one?

        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