From 3802e5a66de534386bd3b4cc0824d9dfa8854003 Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Mon, 20 Dec 2021 14:43:31 +0800 Subject: [PATCH] no message --- general/CMakeLists.txt | 2 +- test/src/cpp11/CMakeLists.txt | 2 ++ test/src/cpp11/template.cpp | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/general/CMakeLists.txt b/general/CMakeLists.txt index 505a4b0..007fd73 100644 --- a/general/CMakeLists.txt +++ b/general/CMakeLists.txt @@ -18,7 +18,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") # using Intel C++ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # using Visual Studio C++ - add_compile_options(/D_CRT_SECURE_NO_WARNINGS_CRT_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_WARNINGS) + add_compile_options( /DEBUG /D_CRT_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_WARNINGS) endif() SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/obj) diff --git a/test/src/cpp11/CMakeLists.txt b/test/src/cpp11/CMakeLists.txt index 3751a19..0000d62 100644 --- a/test/src/cpp11/CMakeLists.txt +++ b/test/src/cpp11/CMakeLists.txt @@ -25,3 +25,5 @@ add_executable(cpp11 cpp11_test.cpp ) add_executable(gtest gtest.cpp ) add_executable(thread_test thread_usage.cpp threadpool.cpp) add_executable(log_test.cpp log_test.cpp) +add_executable(template_test template.cpp) + diff --git a/test/src/cpp11/template.cpp b/test/src/cpp11/template.cpp index 8592479..4fa5d6b 100644 --- a/test/src/cpp11/template.cpp +++ b/test/src/cpp11/template.cpp @@ -51,4 +51,9 @@ void TestRingBuffer(){ printf("%d ",in[i]); } +} + +int main() { + std::cout<<"main"<