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. building CMake project with external configuration file in Qt Creator

building CMake project with external configuration file in Qt Creator

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

    I'm trying to use an existing CMake project in QtCreator. There is something that I haven't figured out yet when importing:

    We store the settings for different configurations in separate .cmake-Files which I would usually provide on the commandline using cmake -C configurations/xy.cmake . I tried to add this (-C ...) to the "initial CMake Parameters" list in "build" tab but seems that the file was not used. How can I do this?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      You are using a relative path, so that will break if the working directory is not where you think it is (e.g. it is the build output directory and not the source directory). Try using an absolute path as an experiment.

      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