<div dir="ltr"><div>&nbsp;</div>
<div>Ah.. </div>
<div>&nbsp;</div>
<div>Should I put a line like</div>
<div>&nbsp;</div>
<div>CHECK_INCLUDE_FILE_CONCAT(&quot;windows.h&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HAVE_WIN_H)<br></div>
<div>as the first check? </div>
<div>&nbsp;</div>
<div>For now I have just manually written #define HAVE_GL_GLU_H 1 into the config.h before compiling, and I can run&nbsp;FLTK&#39;s&nbsp;fractals example.</div>
<div>I am looking forward to work with the Orfeo toolbox, did not want to spend too much time with&nbsp;CMake now.</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div>&nbsp;</div>
<div>Marianne<br></div>
<div class="gmail_quote">On Sat, Aug 9, 2008 at 4:47 PM, Bill Hoffman <span dir="ltr">&lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">Marianne B. Wiese wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello<br>&nbsp;Just to let you know:<br>&nbsp;It turns out that the way cmake looks for a file to include, is by TRY_CO)MPILE() a tiny c-file whith for example #include GL/glu.h.<br>
&nbsp;However, Visual C++ cannot compile with #include &lt;glu.h&gt; if &lt;windows.h&gt; is not included too.<br>Therefore I will not succeed in compiling FLTK, unless I change checkincludefiles.cmake.<br>&nbsp;<br></blockquote></div>
You just have to add a check include for windows.h before the glu.h as that is what CONCAT part of that macro does, it will add additional includes to the check in the order they are found. 
<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I think I will give it up, and see if I can get Orfeo Toolbox to work with a binary installed FLTK instead.<br>
&nbsp;<br></blockquote></div>I am not sure what you are giving up on??? &nbsp; I build FLTK with cmake all the time.<br><font color="#888888"><br><br>-Bill<br></font></blockquote></div>
<div><br>&nbsp;</div>
<div>&nbsp;</div>
<div><br clear="all"><br>-- <br>Marianne B. Wiese<br>Reventlowsgade 30<br>1651 København V<br><br>+45 33 22 69 18<br></div></div>