I am trying to build a static build of Ogre without dependencies. Unfortunally CMake and I do not agree at all. It wants to force me to use the dependency directory and the dependency files. I have all the dependencies in a nice and clean structure on the harddrive and want to use them. Ontop of that I want to generate the project without using hardcoded paths.
I tried to set all the paths manually and use a macro that is used in Visual Studio, but CMake bails on the lost files. Is there any way to remove the check for the dependencies without touching the CMakeLists.txt files? I really do not want to ruin/edit the SVN checkedout files. Is there any switch I have missed somewhere, which forces CMake to overlook that the dependencies are not available?
My directorytree is something like this;
Code: Select all
...
F:/SDK/CEGui/0.7.1
F:/SDK/CEGui/include
F:/SDK/CEGui/lib
...
F:/SDK/Ogre/include
F:/SDK/Ogre/lib
F:/SDK/Ogre/svn
...
F:/SDK/zlib/1.2.3
F:/SDK/zlib/lib
F:/SDK/zlib/include
...
I hope I have made my question clear enough. And yes, I know I could copy files around etc. But I would rather not have copies of the same files on different locations etc. If it was only for Ogre, it would be ok. But for example, zlib which I have in other projects, I dont want one copy in the Ogre tree, one in libpng tree etc.
Thanks in advance.