Skip to content

Commit 59c8bba

Browse files
committed
更新cmakelist
1 parent 9352064 commit 59c8bba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ set(SUBDIRS "common" "mqtt" "platform" "network" "mqttclient")
88
# 库文件前缀
99
set(LIBRARY_PREFIX "mc")
1010

11+
# 编译debug版本
12+
set(CMAKE_BUILD_TYPE "Debug")
13+
1114
# 设置版本信息
1215
set(PROJECT_MAJOR_VERSION 1) # 架版本信息
1316
set(PROJECT_MINOR_VERSION 2) # 主版本信息
@@ -56,7 +59,8 @@ get_module_info()
5659
show_module_info()
5760
install_project()
5861

62+
option(BUILD_EXAMPLES "Build examples" ON)
5963

60-
# if(BUILD_EXAMPLES)
64+
if(BUILD_EXAMPLES)
6165
add_subdirectory(example)
62-
# endif()
66+
endif()

0 commit comments

Comments
 (0)