add trantor lib

This commit is contained in:
an-tao 2018-04-27 11:00:24 +08:00
parent 0683a30703
commit e3f56d75aa
4 changed files with 22 additions and 0 deletions

2
.gitignore vendored
View File

@ -30,3 +30,5 @@
*.exe
*.out
*.app
build

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "trantor"]
path = trantor
url = https://github.com/an-tao/trantor.git

16
CMakeLists.txt Executable file
View File

@ -0,0 +1,16 @@
cmake_minimum_required (VERSION 2.6)
EXEC_PROGRAM(gcc ARGS "--version | grep "^gcc"|awk '{print $3}' | sed s'/)//g'" OUTPUT_VARIABLE version)
MESSAGE(STATUS "This is gcc version:: " ${version})
project (DROGON)
if (version LESS 6.0.0)
MESSAGE(STATUS "old gcc")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fpermissive -g -ggdb")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -fpermissive -g -ggdb")
MESSAGE(STATUS "new gcc")
endif()
add_subdirectory(trantor)
SET(CMAKE_INSTALL_PREFIX /usr/local/drogon)
#INSTALL(FILES trantor.cfg DESTINATION conf)

1
trantor Submodule

@ -0,0 +1 @@
Subproject commit e4b8058270f8757678c7fb7aeceee0cd4acb6e19