Josef Karthauser <> wrote:
>> Each project statement should map to a .sln file that contains any
>> necessary .vcproj files.
>
> I've got that. However, the .sln file doesn't appear to reference the
> .vcproj files for objects specified in the target_link_libraries. I
> would expect these to get
> -Original Message-
> From: David Cole [mailto:[EMAIL PROTECTED]
> Sent: 25 October 2007 16:28
> To: Josef Karthauser
> Cc: cmake@cmake.org
> Subject: Re: [CMake] Adding a project to a solution.
>
> This code:
> PROJECT(Project)
> TARGET_
Joe,
You will receive a solution file in any directory that contains a PROJECT
command. Additionally, the solution file will contain all of the subprojects
in it. In your example, I would add PROJECT(MyTestProject) to
Test/CMakeLists.txt, and I would add PROJECT(Library) to
Test/Library/CMak
This code:
PROJECT(Project)
TARGET_LINK_LIBRARIES(Project Library)
...doesn't make sense.
The first argument to TARGET_LINK_LIBRARIES should be a cmake target
name (first arg to ADD_EXECUTABLE, ADD_LIBRARY or ADD_CUSTOM_TARGET)
not a cmake project name...
It should be something like:
PROJECT
Test/
Library/
Project/
Project uses Library, like so:
Project/CMakeLists.txt:
PROJECT(Project)
TARGET_LINK_LIBRARIES(Project Library)
However Library.vcproj doesn’t show up in Project’s solution file. Can
I specify that it should, or do I need to hack code?
I think this is not the
Hi there again J,
With respect to the Visual Studio generators, I'm wondering what logic
cmake uses to determine which projects to add to the solution file. I
had assumed that anything which was linked as a library was
automatically added, but it isn't. Is there an easy way of adding
dependen