How to change the executable output directory for Win32 builds, in CMake?

后端 未结 2 1970
伪装坚强ぢ
伪装坚强ぢ 2020-12-25 15:46

My problem is as such : I\'m developing a small parser using Visual Studio 2010. I use CMake as a build configuration tool.

But I find the default executable buildin

2条回答
  •  再見小時候
    2020-12-25 16:03

    Most probably you will need to copy your binaries with a separate custom command which would look similar to this one:

    add_custom_command(target your_target_name
              POST_BUILD
              COMMAND ${CMAKE_COMMAND} -E copy ${EXAMPLE_BIN_NAME} ${PROJECT_BINARY_DIR}/.
    )
    

提交回复
热议问题