Re: [CMake] Compiling zlib and libpng with one command

2009-11-12 Thread Philip Lowman
On Thu, Nov 12, 2009 at 6:59 PM, Hugh Sorby wrote: > > 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 > > This should work out of the box with the CM

Re: [CMake] Compiling zlib and libpng with one command

2009-11-12 Thread Michael Jackson
Well, Having gone down this path just this morning with BOTH of those libraries, here is what I did. In my png/CMakeList.txt file, I have the following: include_directories(${CxImage_SOURCE_DIR}/Utilities/cxzlib) include_directories(${CxImage_BINARY_DIR}/CxZLib) ADD_LIBRARY(CxPng ${LIB_

[CMake] Compiling zlib and libpng with one command

2009-11-12 Thread Hugh Sorby
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 di