Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. German
  4. subdirs Projekt mit cmake?

subdirs Projekt mit cmake?

Scheduled Pinned Locked Moved Unsolved German
2 Posts 2 Posters 151 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.
  • R Offline
    R Offline
    RoadCoder
    wrote last edited by RoadCoder
    #1

    Hallo,
    ich habe ein Problem bei dem ich nicht weiter komme. Ich möchte ein ganz neues Projekt anfangen als subdirs.
    -> Neues subdirs Projekt
    -> Neues Teilprojekt Qt Widget App und Bibliothek werden immer als qmake angelegt.

    Wenn ich die Qt Widget App und die C++ Bibliothek separat anlege, klappt es.
    gehen subdirs mit cmake nicht oder mache ich das was falsch?
    Gruß
    Stefan

    Meine frische Installation:
    Qt 6.8.3
    -> MinGW 13.1.0 64-bit
    Build Tools
    -> MinGW 13.1.0 64.bit
    -> CMake 3.30.5
    -> Ninja 1.12.1
    -> Qt Maintenance Tool
    Qt Creator
    -> Qt Creator 18.0.1

    Pl45m4P 1 Reply Last reply
    0
    • R RoadCoder

      Hallo,
      ich habe ein Problem bei dem ich nicht weiter komme. Ich möchte ein ganz neues Projekt anfangen als subdirs.
      -> Neues subdirs Projekt
      -> Neues Teilprojekt Qt Widget App und Bibliothek werden immer als qmake angelegt.

      Wenn ich die Qt Widget App und die C++ Bibliothek separat anlege, klappt es.
      gehen subdirs mit cmake nicht oder mache ich das was falsch?
      Gruß
      Stefan

      Meine frische Installation:
      Qt 6.8.3
      -> MinGW 13.1.0 64-bit
      Build Tools
      -> MinGW 13.1.0 64.bit
      -> CMake 3.30.5
      -> Ninja 1.12.1
      -> Qt Maintenance Tool
      Qt Creator
      -> Qt Creator 18.0.1

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote last edited by Pl45m4
      #2

      @RoadCoder said in subdirs Projekt mit cmake?:

      gehen subdirs mit cmake nicht oder mache ich das was falsch?

      Hi, jap.
      Wenn ich mich nicht irre, ist "subDirs" bzw. SubDir-Project eine Bezeichnung von QMake. Meine das Macro bzw. die QMake Funktion heißt sogar so.
      Jetzt noch extra QMake zu lernen, halte ich aber für völligen Blödsinn, da Qt die Weiterentwicklung eingestellt hat und mittlerweile CMake der Standard und das empfohlene Buildsystem für Qt Apps ist.
      Und bei CMake erübrigt sich das ganze SubDir Theater ja, weil du ja eh in jedem Verzeichnis (theoretisch) ne eigene CMakeLists.txt anlegen kannst, die weitere Unterordner und andere Targets verwaltet :)


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      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