On 7/25/07, <b class="gmail_sendername">Andy Dingfelder</b> &lt;<a href="mailto:DingfelderA@sirtrack.com">DingfelderA@sirtrack.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;m wondering if someone could help me with a simple change to the<br>helloworld example<br><br>I have gotten the helloworld to work with either windows output or<br>linux output, by changing the base CMakeLists.txt file but am struggling
<br>on how to build both<br><br>the current example is set up as follows:<br><br>CMakeExample/Hello<br>CMakeExample/Demo<br>CMakeExample/Build<br>CMakeExample/CmakeLists.txt<br><br>My goal is to set up my system something like this:
<br><br>CMakeExample/src/Hello<br>CMakeExample/src/Demo<br>CMakeExample/lib&nbsp;&nbsp;&nbsp;&nbsp; &lt;-- not sure if I need this?<br>CMakeExample/linuxBuild/CmakeLists.txt<br>CMakeExample/windowsBuild/CmakeLists.txt</blockquote><div><br>CMakeLists.txt
 should be put under the topmost directory of your project. And since CMake is a cross-platform make, you need not use two different CMakeLists.txt for Linux and Windows.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It seems that the only difference between the CmakeLists.txt file for<br>linux and windows is that the windows one has<br>SET(CMAKE_C_COMPILER i686-mingw32-gcc)<br>SET(CMAKE_CXX_COMPILER i686-mingw32-g++)<br>while the linux one uses the default
<br><br>basically I want the helloworld example but running &quot;out of source<br>directory&quot;<br><br>thoughts?<br>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>WARNING: This email and any attachments may be confidential and/or
<br>privileged. They are intended for the addressee only and are not to be read,<br>used, copied or disseminated by anyone receiving them in error.&nbsp;&nbsp;If you are<br>not the intended recipient, please notify the sender by return email and
<br>delete this message and any attachments.<br><br>The views expressed in this email are those of the sender and do not<br>necessarily reflect the official views of Landcare Research.<br><br>SirTrack<br><a href="http://www.sirtrack.com">
http://www.sirtrack.com</a><br>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br><br><br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">
CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>