diff --git a/CMakeLists.txt b/CMakeLists.txt index 353ad52..a8ca658 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,13 @@ project (uts-server) set(VERSION 0.1.0) +option(DEBUG "compile with debug symbol" OFF) +if(DEBUG) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g") + set(CMAKE_BUILD_TYPE Debug) +endif(DEBUG) + + add_custom_target(tag git tag -a "${VERSION}" -m "version ${VERSION}" && git push origin ${VERSION}