在cmakelists.txt中添加:

add_library(glew_static STATIC IMPORTED)
set_target_properties(glew_static PROPERTIES
IMPORTED_LOCATION /home/ryan/DevLibrary/glew-1.9./lib/libGLEW.a)
target_link_libraries(smolder glew_static)
05-17 20:40