BLUELOVETH 2 năm trước cách đây
mục cha
commit
fd8f121cea
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      CMakeLists.txt

+ 7 - 0
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)