Thanks for the response on this, I was able to get this to work (to
degrees) with libtiff and Jasper as well as other non CMake-a-fied
projects. I have run into another issue where I wish to use configure_file
to generate a CMakeLists.txt file in the directory where
ExternalProject_add dumps the
I use a technique like this:
configure_file(input ${CMAKE_CURRENT_BINARY_DIR}/proj-CMakeLists.txt
@ONLY)
# or maybe COPYONLY instead of @ONLY if you have no replacements
occurring
ExternalProject_Add(proj
URL http://blah/blah/blah.tar.gz
URL_MD5 md5-ofcourse
PATCH_COMMAND
You could use:
BUILD_COMMAND nmake /f makefile.vc
BUILD_IN_SOURCE 1
in your ExternalProject_Add call.
nmake is already available from within the Visual Studio environment.
Of course, if your project is cross-platform, you'll have to conditionalize
this so that it only happens when using a
Since I do not see a FindNmake or the likes, is there a way to call
Nmake from a CMakeLists.txt file?
The root CMakeList.txt file contains:
set( LIBTIFF_CONFIGURE_FILE ${TOP}/CMake/libtiff/CMakeLists.txt.config )
configure_file( ${LIBTIFF_CONFIGURE_FILE}
Hi Brian,
While I am not directly answering your question, if you want to build zlib
in a cross-platform fashion, you could probably have a look at:
https://github.com/commontk/zlib
Hth
Jc
On Sat, Jun 16, 2012 at 5:11 PM, Brian J. Davis bitmi...@gmail.com wrote:
Since I do not see a