[英]How do I set VS2010 project properties in CMake?
For example, in my vs2010 project file, I have "Output File Name" (from Project Properties -> C/C++ -> Output Files) to $(IntDir)/%(RelativeDir)/. 例如,在我的vs2010项目文件中,我有“输出文件名”(从项目属性-> C / C ++->输出文件)到$(IntDir)/%(RelativeDir)/。 I know how to do this manually, but for CMake I'm not at all sure.
我知道如何手动执行此操作,但是对于CMake我一点也不知道。
How do I set such a property, in the CMakeLists.txt file? 如何在CMakeLists.txt文件中设置这样的属性?
When you do add_executable()
or add_library()
, the target name is the name of resulting binary, which, i think, will turn into "Output File Name" property during generation. 当您执行
add_executable()
或add_library()
,目标名称是生成的二进制文件的名称,我认为在生成过程中它将变成“输出文件名”属性。
You can also try to set OUTPUT_NAME
property for your target. 您也可以尝试为目标设置
OUTPUT_NAME
属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.