Home › Forums › GAMES在线课程(现代计算机图形学入门)讨论区 › windows下环境配置问题 › Reply To: windows下环境配置问题
JiaFeiMiao
Participant
setting toolchain file in visual studio code and cmake tool for vsc doesn’t work
根据StackOverflow上这个问题的评论区修改CMakeLists.txt,实测有效
cmake_minimum_required(VERSION 3.20)
set(CMAKE_TOOLCHAIN_FILE "C:/vcpkg/scripts/buildsystems/vcpkg.cmake")
project(Rasterizer)
find_package(OpenCV REQUIRED)
set(CMAKE_CXX_STANDARD 17)
include_directories(/usr/local/include)
add_executable(Rasterizer main.cpp rasterizer.hpp rasterizer.cpp Triangle.hpp Triangle.cpp)
target_link_libraries(Rasterizer ${OpenCV_LIBRARIES})