yes cmake can do this,i have used cmake shortlyand still in studing . i think those code can do this.<br>if(MSVC60)<br>&nbsp;&nbsp;&nbsp; set(EXECUTABLE_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC60)<br>&nbsp;&nbsp;&nbsp; set(LIBRARY_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC60)
<br>&nbsp;&nbsp;&nbsp; #(set where executables and libraries go)<br>ENDIF(MSVC60)<br><br>if(MSVC70)<br>&nbsp;&nbsp;&nbsp; set(EXECUTABLE_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC70)<br>&nbsp;&nbsp;&nbsp; set(LIBRARY_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC70)<br>&nbsp;&nbsp;&nbsp; #(set where executables and libraries go)
<br>
ENDIF(MSVC70)<br><br>if(MSVC71)<br>&nbsp;&nbsp;&nbsp; set(EXECUTABLE_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC71)<br>&nbsp;&nbsp;&nbsp; set(LIBRARY_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC71)<br>&nbsp;&nbsp;&nbsp; #(set where executables and libraries go)<br>

ENDIF(MSVC71)<br><br>if(MSVC80)<br>&nbsp;&nbsp;&nbsp; set(EXECUTABLE_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC80)<br>&nbsp;&nbsp;&nbsp; set(LIBRARY_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC80)<br>&nbsp;&nbsp;&nbsp; #(set where executables and libraries go)<br>


ENDIF(MSVC80)<br><br>IF(MINGW)<br>&nbsp;&nbsp;&nbsp;&nbsp;

set(EXECUTABLE_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MINGW)<br>&nbsp;&nbsp;&nbsp;&nbsp; set(LIBRARY_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MINGW)<br>&nbsp;&nbsp;&nbsp; #(set where executables and libraries go)<br>ENDIF(MINGW)<br><br><br><br> <div><span class="gmail_quote">
On 9/4/06, <b class="gmail_sendername">Mateusz Loskot</b> &lt;<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 wrote:<br>&gt; #&nbsp;&nbsp; CMakeLists.txt for geos 3.0 by sungaoyong<br>&gt; #&nbsp;&nbsp; 2006-09-04 <a href="mailto:sungaoyong@gmail.com">sungaoyong@gmail.com</a> &lt;mailto:<a href="mailto:sungaoyong@gmail.com">sungaoyong@gmail.com</a>
&gt;<br>&gt; #&nbsp;&nbsp;&nbsp;&nbsp; Building on Cmake 2.4<br>&gt; #&nbsp;&nbsp;&nbsp;&nbsp; ------------------------------------<br>&gt; #&nbsp;&nbsp; test on windows mingw32 g++ 3.4.2msvc 2003,linux g++ 4.1<br>&gt; #&nbsp;&nbsp; hope it's usefull<br><br><br>Hi,<br><br>First, I'd like to thank you on behalf of GEOS team for
<br>this contribution!<br><br>I also run it with success!<br>I use Linux (Ubuntu 6.06) + gcc 4.0.3 + cmake 2.4.3 (compiled<br>from sources)<br><br>Here are binaries generated by cmake:<br>libgeos_i.a<br>libgeos.so<br>TestSweepLineSpeed
<br><br>Is it possible to put CMakeLists.txt file outside the 'source' tree?<br>For example, to &lt;GEOS ROOT&gt;/build/cmake<br><br>cmake generates Makefile on the same level as automake, so<br>I'd suggest to put cmake outside the tree to avoid potential
<br>conflicts with autotools (some problems may be unknown at the moment).<br><br>Is this possible to use cmake thisway?<br><br><br>Sandro,<br><br>What do you think about creating 'build' directory for other, additional<br>
build systems?<br>There we could store: Visual C++ files, cmake files, etc.<br><br>Here is my proposal:<br>&lt;GEOS&gt;/build/cmake<br>&lt;GEOS&gt;/build/msvc71<br>&lt;GEOS&gt;/build/msvc80<br>&lt;GEOS&gt;/build/...<br><br>
By the way, cmake may generate Visual C++ projects for<br>us, so it may be helpful to keep them up to date:<br><a href="http://www.cmake.org/HTML/Features.html">http://www.cmake.org/HTML/Features.html</a><br><br>Cheers<br>
--<br>Mateusz Loskot<br><a href="http://mateusz.loskot.net">http://mateusz.loskot.net</a><br>_______________________________________________<br>geos-devel mailing list<br><a href="mailto:geos-devel@geos.refractions.net">geos-devel@geos.refractions.net
</a><br><a href="http://geos.refractions.net/mailman/listinfo/geos-devel">http://geos.refractions.net/mailman/listinfo/geos-devel</a><br></blockquote></div><br>