summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authoryangwei <[email protected]>2023-08-25 19:23:09 +0800
committeryangwei <[email protected]>2023-08-25 19:23:09 +0800
commitf6d1f7b6f17eb0b537869f5a18853c141c0a28e9 (patch)
tree08740114edc03cd0b4cce62ea5d6a9f3b959c8b4 /CMakeLists.txt
parent10bb8f9fec35cf4a8860ac6a4add17cd57d05796 (diff)
🔧 build(CI): 增加BUILD_TEST,加壳流程设置为OFF
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8d07088..d71e71a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -221,9 +221,6 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HEADER_CHECK_DEFINITIONS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${HEADER_CHECK_DEFINITIONS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
-#for sapp_module_test
-option(SAPP_V4 "test for sapp v4.0" TRUE)
-
add_subdirectory(./vendor)
add_subdirectory(./src/support)
add_subdirectory(./src/dealpkt)
@@ -239,12 +236,16 @@ add_subdirectory(./src/entry)
add_subdirectory(./test)
add_subdirectory(./service)
add_subdirectory(./tools)
+
+option(BUILD_TEST "Enable test build" ON)
+if(BUILD_TEST STREQUAL "ON")
+#for sapp_module_test
add_subdirectory(./benchmark)
add_subdirectory(./module_test)
enable_testing()
add_subdirectory(./ctest)
-
+endif()
#by default, not include sapp_module_test dir
#add_subdirectory(./test/sapp_module_test/src)