1. 程式人生 > >Cmakelists.txt中配置glew

Cmakelists.txt中配置glew

在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)