Cmake executable name

后端 未结 2 1777
执念已碎
执念已碎 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")
    

提交回复
热议问题