add_library(${PROJECT_NAME}_lib STATIC ${SOURCES})
# rename _lib file
#这里有for each看config是Debug还是release 下边把${config}换成具体的字符串一样错误
add_custom_command(TARGET ${PROJECT_NAME}_lib POST_BUILD COMMAND rename
${CMAKE_CURRENT_BINARY_DIR}/${config}/${PROJECT_NAME}_lib.lib ${CMAKE_CURRENT_BINARY_DIR}/${config}/${PROJECT_NAME}.lib)
就是想给生成的lib文件改个名
--
FROM 106.39.0.*