[CMake] including lib
Mike Jackson
imikejackson at gmail.com
Tue Feb 26 13:16:50 EST 2008
find_library(glut name "glut32" PATHS "Z:/Opt/lib" NO_DEFAULT_PATH)
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Feb 26, 2008, at 1:12 PM, Harsha Sri-Narayana wrote:
> 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
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list