27 lines
611 B
CMake
27 lines
611 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
project(redis_cache CXX)
|
|
|
|
include(CheckIncludeFileCXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
add_executable(${PROJECT_NAME} main.cc)
|
|
|
|
find_package(Drogon CONFIG REQUIRED)
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE Drogon::Drogon)
|
|
|
|
aux_source_directory(controllers CTL_SRC)
|
|
aux_source_directory(filters FILTER_SRC)
|
|
target_include_directories(${PROJECT_NAME}
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_sources(${PROJECT_NAME}
|
|
PRIVATE
|
|
${SRC_DIR}
|
|
${CTL_SRC}
|
|
${FILTER_SRC})
|
|
|
|
add_subdirectory(test)
|