From a6e2d4f007445228e8755234db55eb98b39f10e4 Mon Sep 17 00:00:00 2001 From: An Tao Date: Fri, 16 Aug 2019 13:11:21 +0800 Subject: [PATCH] Modify the drogon_ctl (#213) --- drogon_ctl/templates/cmake.csp | 11 +++++++++-- lib/src/AOPAdvice.cc | 13 +++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/drogon_ctl/templates/cmake.csp b/drogon_ctl/templates/cmake.csp index ac29758f..e96678bf 100644 --- a/drogon_ctl/templates/cmake.csp +++ b/drogon_ctl/templates/cmake.csp @@ -14,6 +14,15 @@ endif() set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) +########## +# If you include the drogon source code locally in your project, use this method to add drogon +# add_subdirectory(drogon) +# set(Drogon_DIR ${PROJECT_BINARY_DIR}/drogon) +# find_package(Drogon CONFIG REQUIRED NO_DEFAULT_PATH) +# include_directories(${DROGON_INCLUDE_DIRS}) +# link_libraries(${DROGON_LIBRARIES}) +########## + find_package(Drogon CONFIG REQUIRED) include_directories(${DROGON_INCLUDE_DIRS}) link_libraries(${DROGON_LIBRARIES}) @@ -33,8 +42,6 @@ aux_source_directory(filters FILTER_SRC) aux_source_directory(plugins PLUGIN_SRC) aux_source_directory(models MODEL_SRC) -include_directories(/usr/local/include) - file(GLOB SCP_LIST ${CMAKE_CURRENT_SOURCE_DIR}/views/*.csp) foreach(cspFile ${SCP_LIST}) message(STATUS "cspFile:" ${cspFile}) diff --git a/lib/src/AOPAdvice.cc b/lib/src/AOPAdvice.cc index 651bdafc..452e1ef5 100644 --- a/lib/src/AOPAdvice.cc +++ b/lib/src/AOPAdvice.cc @@ -1,3 +1,16 @@ +/** + * + * AOPAdvice.cc + * An Tao + * + * Copyright 2018, An Tao. All rights reserved. + * https://github.com/an-tao/drogon + * Use of this source code is governed by a MIT license + * that can be found in the License file. + * + * Drogon + * + */ #include "AOPAdvice.h" #include "HttpRequestImpl.h"