I am trying to compile zlib and libpng with one command, or more specifically one series of commands. My aim is to get as simple as possible to the following

cmake
make
make install

So what I have done so far is to layout my directories like so:

third_party
|
--zlib
|
--libpng


In each directory I have a CMakeLists.txt file that will build the libraries. So far so good. Now with a clean system i.e. one where libpng can't find zlib (because it hasn't been built yet) I try executing:

cmake

Which runs as expected right up until libpng requires the existence of zlib. So my problem is how to tell libpng that zlib is on it's way if it could only be a little patient. Preferebly without having to touch the CMakeLists.txt file inside libpng directory

Also is this strategy likely to fly or is it never going to get off the ground?

Chreers.

Also, can CMake apply patches?

_______________________________________________
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

Reply via email to