From 4479fc6a80736e78cca974142f9e8d3f66cbf291 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 20 Apr 2021 16:19:24 +0800 Subject: import(life): ... --- works/life/cpp-practicum/CMakeLists.txt | 6 +++--- works/life/cpp-practicum/vcpkg.json | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 works/life/cpp-practicum/vcpkg.json (limited to 'works/life/cpp-practicum') diff --git a/works/life/cpp-practicum/CMakeLists.txt b/works/life/cpp-practicum/CMakeLists.txt index 7958850..346fdb4 100644 --- a/works/life/cpp-practicum/CMakeLists.txt +++ b/works/life/cpp-practicum/CMakeLists.txt @@ -1,8 +1,8 @@ -set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/../vcpkg/scripts/buildsystems/vcpkg.cmake - CACHE STRING "Vcpkg toolchain file") - cmake_minimum_required(VERSION 3.14) +set(CMAKE_TOOLCHAIN_FILE $ENV{VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake + CACHE STRING "Vcpkg toolchain file") + project(CppPraticum) enable_testing() diff --git a/works/life/cpp-practicum/vcpkg.json b/works/life/cpp-practicum/vcpkg.json new file mode 100644 index 0000000..cb907c5 --- /dev/null +++ b/works/life/cpp-practicum/vcpkg.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json", + "name": "cpp-praticum", + "version": "0.0.1", + "dependencies": ["ms-gsl", "qt5"] + } + \ No newline at end of file -- cgit v1.2.3