[CMake] project() and SLN files
Robert Dailey
rcdailey at gmail.com
Wed Jul 1 18:34:53 EDT 2009
Hi,
If I have the following CMakeLists.txt:
cmake_minimum_required( VERSION 2.6.4 )
project( project1 )
add_executable( project1 source1.cpp )
project( project2 )
add_executable( project2 source2.cpp )
project( project3 )
add_executable( project3 source3.cpp )
If I create visual studio 2008 files with this, I end up getting the
following project files:
project1.vcproj
project2.vcproj
project3.vcproj
project3.sln
The problem here is that I want the SLN file to be named project1.sln (after
the first call to project() ). Is there a way I can tell CMake which call to
project() in the same directory will generate the "master" project file?
Note that if I add a dummy project to the end of the file:
project( foo )
I get:
project1.vcproj
project2.vcproj
project3.vcproj
foo.sln
So it gives me some limited control over the naming, but it isn't ideal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090701/e0ebcf0a/attachment-0001.htm>
More information about the CMake
mailing list