[CMake] including lib

Harsha Sri-Narayana h.sri-narayana at cs.ucl.ac.uk
Tue Feb 26 13:12:12 EST 2008


I'm having a bit of trouble linking to a library.  I have a library in a 
non standard place so I don't think I can use the findglut.cmake helper 
script.  I have this so far:

.
.
find_library(glut name "glut32.lib" PATHS "Z:/Opt/lib" NO_DEFAULT_PATH)
.
.
.
target_link_libraries(mytarget ${glut})


I get:
"CMake Error: This project requires some variables to be set and cmake 
can not find them.  Please set glut."

Any help would be greatly appreciated,
-Harsha


More information about the CMake mailing list