在cmakelists.txt中添加:

add_library(glew_static STATIC IMPORTED)
set_target_properties(glew_static PROPERTIES
    IMPORTED_LOCATION /home/ryan/DevLibrary/glew-1.9.0/lib/libGLEW.a)
target_link_libraries(smolder glew_static)

 

posted on 2018-11-25 11:09  未完代码  阅读(1048)  评论(0编辑  收藏  举报