<span class="gmail_quote"></span>I&#39;m new to cmake, and I have been trying to find a good comprehensive tutorial to get myself started, but have had no luck. Does anyone know a good one besides the <a href="http://cmake.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
cmake.org</a> site and the linuxjournal one?
<br><br>I will try to describe one problem i&#39;m having, but I&#39;m not really sure where to begin. I&#39;m trying to compile a C++ project and I get this error:<br><br>/usr/bin/ld: Undefined symbols:<br>_glBegin<br>
_glBindTexture<br>_glColor3d<br>_glColor3f<br>_glCullFace<br>...<br>...<br><br>and so on...<br><br>I read somewhere this might have to do with cmake trying to compile C++ code using gcc instead of g++, and that you can override this setting in the CMakeCache file, but this is the line in the 
CMakeCache.txt file:<br><br>CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++<br><br>I tried changing it to g++, but it didn&#39;t seem to do anything. I don&#39;t think this has much to do with the actual code of the project, so I didn&#39;t bother explaining anything about it here. Any help would be greatly appreciated. I&#39;m thinking it&#39;s a really simple error, but who knows. Here is the text of my main 
CMakeLists.txt file:<br><br>---<br><br>#Change PROJECT_NAME to the name of your project<br>PROJECT(TopMod)<br>#include some macros from another file...<br>INCLUDE(${TopMod_SOURCE_DIR}/CMakeMacros.txt)<br>#Declare any external dependencies that your project may have here.
<br>#examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java<br>#If you&#39;re not sure what name to use, look in the Modules directory of your<br>#cmake install and check that a file named Find(Package).cmake exists
<br>SET(Required_Packages <br>FLTK JPEG PNG OpenGL ZLIB GLUT<br>)<br>FOREACH(Package ${Required_Packages})<br>&nbsp; LOADPACKAGE(${Package})<br>ENDFOREACH(Package)<br><br>#run through these sub directories to build these two libraries
<br>SUBDIRS(vecmat)<br>SUBDIRS(arcball)<br><br>INCLUDE_DIRECTORIES(${TopMod_SOURCE_DIR}/arcball ${TopMod_SOURCE_DIR}/vecmat ${TopMod_SOURCE_DIR}/include /opt/local/lib)
<br>LINK_DIRECTORIES(${TopMod_BINARY_DIR}/arcball ${TopMod_BINARY_DIR}/vecmat ${TopMod_BINARY_DIR}/include /opt/local/lib)<br><br>SET(Libraries fltk_images fltk_gl fltk arcball vecmat)<br><br>SET(CurrentExe &quot;TopMod&quot;)
<br>FILE(GLOB SRC *.cc)<br>ADD_EXECUTABLE(${CurrentExe} ${SRC}) <br>TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})<br><br>---<br><br>thanks for the help,<br>dave<br>