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. qmake to cmake
Forum Updated to NodeBB v4.3 + New Features

qmake to cmake

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

    Hi!

    In our project, we often use 'pri' files to connect a number of sources to the project. For example we have 'pri' file like that:

    HEADERS += \
        $$PWD/IAuthManager.h \
        $$PWD/IAuthPlugin.h \
        $$PWD/IUserInfo.h \
        $$PWD/AuthManager.h \
        $$PWD/AuthPlugin.h \
        $$PWD/UserInfo.h \
    SOURCES += \
        $$PWD/AuthManager.cpp \
        $$PWD/AuthPlugin.cpp \
        $$PWD/UserInfo.cpp \
    

    Include that 'pri' file in the main project 'pro' file. How to make the same in the 'cmake' file ?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      https://cmake.org/cmake/help/latest/command/include.html

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      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