Add console logger to replace original debug output.

This commit is contained in:
Adam Gu
2018-04-24 17:24:55 +08:00
parent bcfb1e4c92
commit 662b7c4112
17 changed files with 242 additions and 112 deletions
+5
View File
@@ -1,11 +1,16 @@
cmake_minimum_required(VERSION 3.1.0)
project(webcc)
option(WEBCC_ENABLE_LOG "Enable console logger?" ON)
option(WEBCC_ENABLE_SOAP "Enable SOAP support (need pugixml)?" ON)
option(WEBCC_BUILD_UNITTEST "Build unit test?" ON)
option(WEBCC_BUILD_REST_EXAMPLE "Build REST example?" ON)
option(WEBCC_BUILD_SOAP_EXAMPLE "Build SOAP example?" ON)
if(WEBCC_ENABLE_LOG)
add_definitions(-DWEBCC_ENABLE_LOG)
endif()
if(WEBCC_ENABLE_SOAP)
add_definitions(-DWEBCC_ENABLE_SOAP)
endif()