Re: [CMake] Calling NMake from CMake

2012-08-23 Thread Brian Davis
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

Re: [CMake] Calling NMake from CMake

2012-08-23 Thread David Cole
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

Re: [CMake] Calling NMake from CMake

2012-06-17 Thread David Cole
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

[CMake] Calling NMake from CMake

2012-06-16 Thread Brian J. Davis
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}

Re: [CMake] Calling NMake from CMake

2012-06-16 Thread Jean-Christophe Fillion-Robin
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