Cmake executable name

后端 未结 2 1776
执念已碎
执念已碎 2021-02-07 00:36

How can I set the executable name in CMake?

I tried using set(EXECUTABLE_OUTPUT_PATH \"...\"), but that only specifies the directory where the executable is

相关标签:
2条回答
  • 2021-02-07 01:18

    A bit more explicit:

    set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "your name")
    
    0 讨论(0)
  • 2021-02-07 01:23

    Have you tried using SET_TARGET_PROPERTIES and using the OUTPUT_NAME property?

    0 讨论(0)
提交回复
热议问题