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") #name of vcproj will be `ABC' or (2) add_executable(ABC) #name of Makefile target and vcproj will be `ABC' set_property(TARGET def PROPERTY OUTPUT_NAME "def") #name of executable will be `def' Hope this helps. Petr On Mon, May 14, 2012 at 3:32 PM, Cristian Cocheci <coch...@yahoo.com> wrote: > > 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 output). Is there a way to > do this? > I am using cmake version 2.8.6 and Visual Studio 9. > > Thanks, > Cristian > > > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake