[CMake] Re : Where does cmake look for include files?
Antoine PREVOT
tonio_lesec at yahoo.fr
Fri Aug 8 07:18:36 EDT 2008
> Apparently CMake cannot find the headers for openGL and/or GLU
> ...
> I would expect cmake to be smart enough to find the glu
> header file, since it finds the VCExpress.exe.
Hi Marianne,
Did you do anything to make cm guess that you want to inclulde GLU headers ? Dunno the detais of your project, but you should have these few lines somewhere :
******************** somepath/CMakeLists.txt
...
INCLUDE(FindGLUT)
IF(GLUT_FOUND)
#MESSAGE(STATUS "GLUT found...")
#MESSAGE("opengl include directory : ${GLUT_INCLUDE_DIR}")
#MESSAGE("opengl library directory : ${GLUT_LIBRARY}")
INCLUDE_DIRECTORIES(${GLUT_INCLUDE_DIR}/Headers)
LINK_LIBRARIES(${GLUT_LIBRARY})
ELSE(GLUT_FOUND)
MESSAGE(FATAL_ERROR "GLUT not found")
ENDIF(GLUT_FOUND)
...
See *cmakepath*/share/cmake-2.x/Modules/FindGLUT.cmake for more informations about the way cmake will search for glut.
Cordially,
Tonio
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
More information about the CMake
mailing list