Cmake可执行文件名 [英] Cmake executable name

查看:459
本文介绍了Cmake可执行文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在CMake中设置可执行文件名称?

How can I set the executable name in CMake?

我尝试使用 set(EXECUTABLE_OUTPUT_PATH...),但只指定创建可执行文件的目录。我还需要更改可执行文件本身的名称。

I tried using set(EXECUTABLE_OUTPUT_PATH "..."), but that only specifies the directory where the executable is created. I also need to change the name of the executable itself. How can I do this?

推荐答案

您是否尝试过使用 SET_TARGET_PROPERTIES ,并使用 OUTPUT_NAME 属性?

Have you tried using SET_TARGET_PROPERTIES and using the OUTPUT_NAME property?

这篇关于Cmake可执行文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆