Thanks Philip, <br><br>that worked flawlessly!<br><br>I would say that <b>this</b> is the most compact CMake specification to compile <br>a Glut/OpenGL application then:<br><br><b>find_package(GLUT)<br>find_package(OpenGL)<br>
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})<br>ADD_EXECUTABLE(mesh_view mesh_view.cpp)<br>TARGET_LINK_LIBRARIES(mesh_view ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES}) </b><br><br>Hopefully other people will be able to find this solution.<br clear="all">
--<br>Andrea Tagliasacchi<br>Ph.D. Candidate<br>School of Computer Science<br>Simon Fraser University<br>
<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div>Try TARGET_LINK_LIBRARIES(mesh_view ${OPENGL_LIBRARIES}) <br>
If it fails to link you can use &quot;make VERBOSE=1&quot; to look at the compiler/linker flags.<br></div></div>
-- <br><font color="#888888">Philip Lowman<br>
</font></blockquote></div><br><br>