From fd8f121ceac18e884f692a01127f3ad2ca04e024 Mon Sep 17 00:00:00 2001 From: BLUELOVETH Date: Wed, 26 Jul 2023 14:36:55 +0800 Subject: [PATCH] ... --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 91a87ebc..f6f98f56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,13 @@ if(MSVC) add_compile_options("/utf-8") endif() +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Release) +endif() + +set(CMAKE_CXX_FLAGS_DEBUG "-g") +set(CMAKE_CXX_FLAGS_RELEASE "-O2") + include_directories(${CMAKE_CURRENT_LIST_DIR}/include) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/src POCKETPY_SRC)