From 168c9a009eb68697c1b8328cfbf3a1a6ccae48f6 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 29 Dec 2020 22:52:02 +0800 Subject: import(life): ... --- works/life/cpp-practicum/CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 works/life/cpp-practicum/CMakeLists.txt (limited to 'works/life/cpp-practicum/CMakeLists.txt') diff --git a/works/life/cpp-practicum/CMakeLists.txt b/works/life/cpp-practicum/CMakeLists.txt new file mode 100644 index 0000000..fbf1c13 --- /dev/null +++ b/works/life/cpp-practicum/CMakeLists.txt @@ -0,0 +1,14 @@ +cmake_minimum_required(VERSION 3.14) + +project(CppPraticum) + +enable_testing() + +set(CMAKE_CXX_STANDARD 17) + +if (MSVC) + string(REGEX REPLACE "/W[0-4]\\s*" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) + add_compile_options(/utf-8 /W4 /WX) +endif() + +add_executable(main main.cpp Base.hpp StringUtil.hpp StringUtil.cpp) -- cgit v1.2.3