[CMake] Help with cross-platform app's cmake setup

2010-01-28 Thread Timothy Reaves
I help contribute to Stellarium, which is a cross-platfor planetarium app, written using Qt. It uses cmake for the build system; it just doesn't do it well. I think the files are much more complex than they need to be, and as usual, the Mac stuff doesn't really work. I've looked at th

[CMake] Xcode and working directory

2010-01-24 Thread Timothy Reaves
Is there a way to set the working directory? It defaults to the generated project directory, when it probably - and in this case definitely - should be the project directory itself. ___ Powered by www.kitware.com Visit other Kitware open-sourc

[CMake] How to refer to current configuration?

2010-01-16 Thread Timothy Reaves
I have a project that produces a dynamic library. This gets built to a directory that in the src tree. Specifically, it is put in a subdirectory of src that is the same as the name of the active configuration. So if I am building a debug release, the path is src/Debug/my.dylib, and fo

[CMake] Xcode path issue

2010-01-14 Thread Timothy Reaves
Hello all. In one of the projects I work on that uses cmake, there are lines of code like so: SET(SSPL ${SSPL} "${CMAKE_BINARY_DIR}/plugins/HelloStelModule/src/libHelloStelModule.a") and that seems to work for Linux and Windows. But it doesn't on Mac with Xcode. With Xcode, un