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. Qt Creator ignores CMAKE_INSTALL_DIR
Qt 6.11 is out! See what's new in the release blog

Qt Creator ignores CMAKE_INSTALL_DIR

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

    I am working on a project with Qt Creator. When I build and run the project via the terminal a folder named obj is created and the binaries and libraries are installed in it.

    This is facilitated with

    set(CMAKE_INSTALL_DIR ${PROJECT_SOURCE_DIR}/obj)

    in the top-level CMakeLists.txt file.

    However, when I build and run my project with qtCreator no obj directory is created. Instead, the binaries are installed to my build folder (out-of-source build)

    How can I change this behaviour and make it obey my CMakeLists commands?

    thank you in advance

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should add which version of Qt Creator you are using, the support of CMake has been heavily modified in the recent minor release.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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