1. 下载Clipper2
  2. VS打开\Clipper2-main\DLL\CPP_DLL\Clipper2_DLL.sln,编译
  3. 配置cmake:
include_directories("E:\\Projects\\***\\Clipper2-main\\CPP\\Clipper2Lib\\include")

add_library(CLipper2 SHARED IMPORTED)
set_target_properties(CLipper2 PROPERTIES
    IMPORTED_IMPLIB "E:\\Projects\\***\\Clipper2-main\\DLL\\CPP_DLL\\x64\\Debug\\Clipper2_64.lib"
    IMPORTED_LOCATION "E:\\Projects\\***\\Clipper2-main\\DLL\\CPP_DLL\\x64\\Debug\\Clipper2_64.all"
)
cmake
  1. 使用
#include <iostream>
#include <clipper2/clipper.h>
int main()
{
    std::cout << "The version of Clipper2 is" << CLIPPER2_VERSION <<std::endl;
    return 0;
}
c++
打赏
  • 微信
  • 支付宝
评论
来发评论吧~
···

歌手: