Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. CMake Cross Compiler and Qt Creator
QtWS25 Last Chance

CMake Cross Compiler and Qt Creator

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 248 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.
  • A Offline
    A Offline
    allenb
    wrote on last edited by
    #1

    We are starting to use Qt Creator for many of our projects since CMake compatibility has improved dramatically. I have used Qt Creator for generic projects which would create the following file types

    • .config
    • .creator
    • .files
    • .includes

    The *.config file allowed the defining of preprocessor defines. Is there a similar way to do this with cmake projects?

    The reason I ask is one of the cmake projects is configured for cross compiling and many of the default compiler defines are not properly setup e.g. _M_AMD64 is defined instead of __arm__.

    Qt Creator automatically detected the build configuration since we already ran cmake to configure building of the project prior to using Qt Creator.

    1 Reply Last reply
    1
    • M Offline
      M Offline
      mchinand
      wrote on last edited by
      #2

      Are some of these architecture-specific variables automatically set by having and choosing an appropriate cross-compiler QtCreator Kit?

      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