We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9352064 commit 59c8bbaCopy full SHA for 59c8bba
CMakeLists.txt
@@ -8,6 +8,9 @@ set(SUBDIRS "common" "mqtt" "platform" "network" "mqttclient")
8
# 库文件前缀
9
set(LIBRARY_PREFIX "mc")
10
11
+# 编译debug版本
12
+set(CMAKE_BUILD_TYPE "Debug")
13
+
14
# 设置版本信息
15
set(PROJECT_MAJOR_VERSION 1) # 架版本信息
16
set(PROJECT_MINOR_VERSION 2) # 主版本信息
@@ -56,7 +59,8 @@ get_module_info()
56
59
show_module_info()
57
60
install_project()
58
61
62
+option(BUILD_EXAMPLES "Build examples" ON)
63
-# if(BUILD_EXAMPLES)
64
+if(BUILD_EXAMPLES)
65
add_subdirectory(example)
-# endif()
66
+endif()
0 commit comments