[CMake] few solutions with cmake

Bill Hoffman bill.hoffman at kitware.com
Thu Mar 3 10:05:59 EST 2011


On 3/3/2011 9:59 AM, gekso wrote:
> No, only one solution (someproject.sln) for all three targets.. 2.8.3 version
>
> 2011/3/3 Robert Bielik<robert.bielik at xponaut.se>:
>> Anton Sibilev skrev 2011-03-03 15:49:
>>>
>>> Hello! One more question.. For example I have such structure:
>>>
>>> folder:base
>>> ....CMakeLists.txt (with PROJECT(someproject))
>>> ....folder:lib1
>>> ........CMakeLists.txt
>>> ....folder:lib2
>>> ........CMakeLists.txt
>>> ....folder:app
>>> ........CMakeLists.txt
>>>
>>> and result is someproject.sln with 3 projects lib1, lib2, app. 'app'
>>> depends on 'lib2'. I want to make additional solution for 'app' and
>>> its dependencies (lib2), without lib1.
>>> Can I make somehow 2 solutions?
>>
>> Isn't that already provided ? Check beneath the 'app' folder where you
>> binaries are built.
>>

You need to add PROJECT commands in each of the sub-project that you 
want a solution for.  The project command will cause CMake to create a 
new .sln file.

-Bill


More information about the CMake mailing list