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. Equivalent of DESTDIR in CMAKE

Equivalent of DESTDIR in CMAKE

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 890 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.
  • L Offline
    L Offline
    luca
    wrote on last edited by luca
    #1

    Hi All,
    In an old qmake project I used something like :

    DESTDIR = ../bin
    

    in my .pro file to put final executable in a custom bin dir instead of standard build-BLABLABLA-Release .

    Now I'm migrating to CMAKE but can't find an equivalent rule.
    Does it exist?

    Thanks
    Luca

    1 Reply Last reply
    0
    • artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      https://stackoverflow.com/questions/6594796/how-do-i-make-cmake-output-into-a-bin-dir ?

      For more information please re-read.

      Kind Regards,
      Artur

      L 1 Reply Last reply
      2
      • artwawA artwaw

        https://stackoverflow.com/questions/6594796/how-do-i-make-cmake-output-into-a-bin-dir ?

        L Offline
        L Offline
        luca
        wrote on last edited by
        #3

        @artwaw Thanks for the link!

        I solved by putting

        set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin)
        

        under the

        set(PROJECT_SOURCES .....)
        

        in my CMakeLists.txt.

        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