Andres Jaan Tack
Andres Jaan Tack

Reputation: 23014

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)/. I know how to do this manually, but for CMake I'm not at all sure.

How do I set such a property, in the CMakeLists.txt file?

Upvotes: 1

Views: 494

Answers (1)

arrowd
arrowd

Reputation: 34401

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.

You can also try to set OUTPUT_NAME property for your target.

Upvotes: 1

Related Questions