Qt Creator ignores CMAKE_INSTALL_DIR



  • 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


  • Lifetime Qt Champion

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.