Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Pres Build step with QtCreator and cmake



  • Hi,

    I have a CMakeList project (works correctly with VS) and I want to open it with QtCreator, the problem is with the "add_custom_command"

    add_custom_command(TARGET ${target}
    PRE_BUILD
    COMMAND ${CMAKE_COMMAND} -E make_directory "toto"
    WORKING_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}")

    I know that the "PRE_BUILD" option works only with VS but I would find a similar thing for QtCreator.
    My project is a big one with many sub project so I don't want to add manualy build step and I find nothing about that atm....

    Any idea ?


Log in to reply