Hi Brian, <div><br></div><div>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: <a href="https://github.com/commontk/zlib">https://github.com/commontk/zlib</a></div>
<div><br></div><div>Hth</div><div>Jc<br><br><div class="gmail_quote">On Sat, Jun 16, 2012 at 5:11 PM, Brian J. Davis <span dir="ltr"><<a href="mailto:bitminer@gmail.com" target="_blank">bitminer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Since I do not see a FindNmake or the likes, is there a way to call Nmake from a CMakeLists.txt file?<br>
<br>
The root CMakeList.txt file contains:<br>
<br>
set( LIBTIFF_CONFIGURE_FILE ${TOP}/CMake/libtiff/<u></u>CMakeLists.txt.config )<br>
configure_file( ${LIBTIFF_CONFIGURE_FILE} ${SOURCE_DIR}/libtiff/<u></u>CMakeLists.txt.config )<br>
<br>
externalproject_add(<br>
libtiff<br>
URL <a href="http://download.osgeo.org/libtiff/tiff-4.0.2.zip" target="_blank">http://download.osgeo.org/<u></u>libtiff/tiff-4.0.2.zip</a><br>
DOWNLOAD_DIR ${DOWNLOAD_DIR}<br>
SOURCE_DIR ${SOURCE_DIR}/libtiff<br>
INSTALL_DIR ${INSTALL_DIR}<br>
<br>
)<br>
<br>
Where the configure_file dumps a CMakeLists.txt file wich is generated form CMakeLists.txt.config into the libtiff source directory so that ExternalProject_Add has a CMakeLIsts.txt file. It is in this CMakeLists.txt file that I need to spawn the build for libtiff such as:<br>
<br>
nmake /f <a href="http://makefile.vc" target="_blank">makefile.vc</a><br>
<br>
Though CMake does not seem to support nmake calls from CMakeLists.txt files configured to generate VisualStudio Build Files. Basically I want a visual studio target to build libtiff using nmake. How does one do this?<br>
<br>
I have been able to do this for zlib, and libpng<br>
<br>
There are a myriad of projects all with their each flavor of building their source which I need to build. it's a regular potpourii of source build scents and not in a good way.<br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>+1 919 869 8849<br><br>
</div>