[CMake] Have Visual Studio project name be different than the executable name

2012-05-14 Thread Cristian Cocheci
I want my project name in Visual Studio to be different than the executable name. This is how I currently have it set up: project( ABC ) ... add_executable( def ) When I open the solution, the project name is def, but I want it to be ABC (with the corresponding ABC.vcproj project file

Re: [CMake] Have Visual Studio project name be different than the executable name

2012-05-14 Thread Petr Kmoch
Hi Cristian. There are two ways to go about this, either using OUTPUT_NAME or PROJECT_LABEL. It also depends on what you want the target name in Makefiles to be: (1) add_executable(def) #name of Makefile target and executable will be `def' set_property(TARGET def PROPERTY PROJECT_LABEL ABC)