[CMake] feature request for eclipse

Ryan Pavlik rpavlik at iastate.edu
Thu Jan 13 09:00:23 EST 2011


I believe this works if you just make your binary directory at CMake time a
sibling of your source directory.

Ryan

On Wed, Jan 12, 2011 at 11:19 AM, Andrea Galeazzi <Galeazzi at korg.it> wrote:

> Suppose you have a project with a lot of sub-projects like:
>  add_subdirectory("path1/lib1"  "${CMAKE_CURRENT_BINARY_DIR}/lib1")
>  add_subdirectory("path2/lib2"  "${CMAKE_CURRENT_BINARY_DIR}/lib2")
> .............
> When I choose VS as target CMake generates a solution made up of each
> sub-project with all files. Unfortunately that's not possible with eclipse
> because a project must be,at least, a sibling of source directory in order
> to browse the source files.
> So I wrote a simple program that generates an eclipse project by parsing
> each add_subdirectory statement in a sibling directory named dir_postfix.
> For instance,  add_subdirectory("path1/lib1"
>  "${CMAKE_CURRENT_BINARY_DIR}/lib1") generates an eclipse project in the
> directory path1/lib1_eclipse_debug.
> After that I import all generated project into my workspace.
> My question is: don't you think this could be an useful "native" feature
> that  should improve the eclipse/cmake interaction?
> Did anyone ever have such need?
> _______________________________________________
> 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
>



-- 
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

rpavlik at iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110113/197fe6d8/attachment.htm>


More information about the CMake mailing list