CatDroid / DevGames101

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

windows平台+vs2015

使用vcpkg + cmake 管理C++库依赖

  • 增加了vcpkg作为工程的submodule

  • 下载项目后,需要git submodule init && git submodule sync && git submodule update 更新vcpkg

  • 安装或者叫做下载vcpkg.exe: 执行 .\vcpkg\bootstrap-vcpkg.bat

  • 安装 Eigen3:

    • .\vcpkg\vcpkg.exe install eigen3 这个就会自动下载源码构建第三方库了,后续cmake直接声明依赖就好
    • Cmake 增改:
      • find_package(Eigen3 CONFIG REQUIRED)
      • target_link_libraries(Transformation PRIVATE Eigen3::Eigen)
      • target_include_directories(Transformation PRIVATE ${EIGEN3_INCLUDE_DIR} )
  • 其他:

About


Languages

Language:C++ 80.7%Language:CMake 19.3%