Hi, CMake doesn't support Xcode "workspaces" like it does Visual Studio "solutions". But you can still define multiple PROJECT()'s that will all be visible and buildable (via the scheme selector) in the IDE. In our setup, we have a bunch of apps and a library, in the top level CMakeLists.txt we do...
PROJECT(Suite) ADD_SUBDIRECTORY(Lib) ADD_SUBDIRECTORY(App0) ... ADD_SUBDIRECTORY(Appn) And every CMakeLists.txt in the leaves of the source tree contains exactly one PROJECT() call: Lib: PROJECT(Lib) ... ADD_LIBRARY(Lib ...) App0: PROJECT(App0) ... ADD_EXECUTABLE(App0 ...) ... App1: PROJECT(Appn) ... ADD_EXECUTABLE(Appn ...) But yes... workspaces would be great. Daniel On Nov 22, 2011, at 1:28 PM, Matthias Dörfelt wrote: > Hi, > > I am currently generating sub projects with cmake using the add_subdirectory > command together with the Xcode generator. It works, but the top level Xcode > project includes the sources and targets of all the sub projects. Is it > possible to make it reference the actual Xcode sub projects instead(to get > closer to a "normal" Xcode workflow)? > If it's not possible with current CMake it would certainly be a very neat > addition! > > Thanks > -- > > 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
