From 10e880b508bcb81473aff034ab9497e0bebeb112 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 30 Dec 2020 15:37:39 +0800 Subject: ... --- cpp-practicum/CMakeLists.txt | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'cpp-practicum/CMakeLists.txt') diff --git a/cpp-practicum/CMakeLists.txt b/cpp-practicum/CMakeLists.txt index fbf1c13..7958850 100644 --- a/cpp-practicum/CMakeLists.txt +++ b/cpp-practicum/CMakeLists.txt @@ -1,3 +1,6 @@ +set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/../vcpkg/scripts/buildsystems/vcpkg.cmake + CACHE STRING "Vcpkg toolchain file") + cmake_minimum_required(VERSION 3.14) project(CppPraticum) @@ -11,4 +14,20 @@ if (MSVC) add_compile_options(/utf-8 /W4 /WX) endif() -add_executable(main main.cpp Base.hpp StringUtil.hpp StringUtil.cpp) +find_package(Qt5Core CONFIG REQUIRED) +find_package(Qt5Gui CONFIG REQUIRED) +find_package(Qt5Widgets CONFIG REQUIRED) + +add_executable(main + Base.hpp + + Book.hpp + Book.cpp + Vendor.hpp + Vendor.cpp + Record.hpp + Record.cpp + + main.cpp +) +target_link_libraries(main PRIVATE Qt5::Core Qt5::Widgets Qt5::Gui) -- cgit v1.2.3