Advertisement

CMake 添加第三方库 CMake 添加第三方库

阅读量:

主要方法概述

复制代码
    #将包含目录添加到构建中
    include_directories(D:/Download/boost/boost_1_77_0)
    include_directories(D:/Download/libxlsxwriter/fast_excel-master/libxlsxwriter/include)
    include_directories(D:/Download/libxlsxwriter/fast_excel-master/libxlsxwriter/src)
    
    #此命令用于查找库
    find_library(boost NAMES pthread PATHS D:/Download/boost/boost_1_77_0)
    find_library(excel NAMES excel PATHS D:/Download/libxlsxwriter/fast_excel-master/libxlsxwriter/include)
    find_library(excel NAMES excel PATHS D:/Download/libxlsxwriter/fast_excel-master/libxlsxwriter/src)
    
    
    
    #添加链接器

全部评论 (0)

还没有任何评论哟~