aboutsummaryrefslogtreecommitdiff
path: root/cpp-practicum/CMakeLists.txt
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-29 22:52:02 +0800
committercrupest <crupest@outlook.com>2020-12-29 22:52:02 +0800
commite6db1d1ef824a884e8ec6fbb636dcc3b181d0d66 (patch)
tree67e2500715c7b625ce49602b18b1c3f70335b641 /cpp-practicum/CMakeLists.txt
parent8996aaddc6534486e0c8f0bff3ee559cabf16e38 (diff)
downloadlife-e6db1d1ef824a884e8ec6fbb636dcc3b181d0d66.tar.gz
life-e6db1d1ef824a884e8ec6fbb636dcc3b181d0d66.tar.bz2
life-e6db1d1ef824a884e8ec6fbb636dcc3b181d0d66.zip
...
Diffstat (limited to 'cpp-practicum/CMakeLists.txt')
-rw-r--r--cpp-practicum/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpp-practicum/CMakeLists.txt b/cpp-practicum/CMakeLists.txt
new file mode 100644
index 0000000..fbf1c13
--- /dev/null
+++ b/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)