diff options
author | crupest <crupest@outlook.com> | 2020-12-30 15:37:39 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-12-30 15:37:39 +0800 |
commit | 10e880b508bcb81473aff034ab9497e0bebeb112 (patch) | |
tree | 5d618688ef09d7b5788d1f2c496e63d28a7e6ec6 /cpp-practicum/CMakeLists.txt | |
parent | 2c0be3fba23ab11b6ee27ae6903ffdbc1a2a8230 (diff) | |
download | life-10e880b508bcb81473aff034ab9497e0bebeb112.tar.gz life-10e880b508bcb81473aff034ab9497e0bebeb112.tar.bz2 life-10e880b508bcb81473aff034ab9497e0bebeb112.zip |
...
Diffstat (limited to 'cpp-practicum/CMakeLists.txt')
-rw-r--r-- | cpp-practicum/CMakeLists.txt | 21 |
1 files changed, 20 insertions, 1 deletions
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)
|