@@ -15,10 +15,10 @@ project(CGraph VERSION 3.1.1)
1515# CGraph默认使用C++11版本,推荐使用C++17版本。暂不支持C++11以下版本
1616set (CMAKE_CXX_STANDARD 11)
1717
18- option (CGRAPH_BUILD_TUTORIAL "Enables builds of tutorials" ON )
19- option (CGRAPH_BUILD_EXAMPLE "Enables builds of examples" ON )
20- option (CGRAPH_BUILD_FUNCTIONAL_TESTS "Enables builds of functional tests" OFF )
21- option (CGRAPH_BUILD_PERFORMANCE_TESTS "Enables builds of performance tests" OFF )
18+ option (CGRAPH_BUILD_TUTORIALS "Enable build tutorials" ON )
19+ option (CGRAPH_BUILD_EXAMPLES "Enable build examples" ON )
20+ option (CGRAPH_BUILD_FUNCTIONAL_TESTS "Enable build functional tests" OFF )
21+ option (CGRAPH_BUILD_PERFORMANCE_TESTS "Enable build performance tests" OFF )
2222
2323# 如果开启此宏定义,则CGraph执行过程中,不会在控制台打印任何信息
2424# add_definitions(-D_CGRAPH_SILENCE_)
@@ -40,12 +40,17 @@ option(CGRAPH_BUILD_PERFORMANCE_TESTS "Enables builds of performance tests" OFF)
4040# add CGraph environment info
4141include (cmake/CGraph-env-include.cmake )
4242
43- if (CGRAPH_BUILD_TUTORIAL)
43+ # 教程相关内容
44+ if (CGRAPH_BUILD_TUTORIALS)
45+ message (STATUS "[CGraph] build tutorials" )
4446 add_subdirectory (./tutorial )
45- endif (CGRAPH_BUILD_TUTORIAL )
46- if (CGRAPH_BUILD_EXAMPLE)
47+ endif (CGRAPH_BUILD_TUTORIALS )
48+
49+ # 样例相关内容
50+ if (CGRAPH_BUILD_EXAMPLES)
51+ message (STATUS "[CGraph] build examples" )
4752 add_subdirectory (./example )
48- endif (CGRAPH_BUILD_EXAMPLE )
53+ endif (CGRAPH_BUILD_EXAMPLES )
4954
5055# 功能测试相关内容
5156if (CGRAPH_BUILD_FUNCTIONAL_TESTS)
0 commit comments