QuickExam/CMakeLists.txt

27 lines
745 B
CMake
Raw Permalink Normal View History

CMAKE_MINIMUM_REQUIRED(VERSION 3.12)
2023-12-18 17:50:56 +08:00
2023-12-19 17:52:59 +08:00
PROJECT(QuickExam)
2023-12-18 17:50:56 +08:00
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)
set(CMAKE_PREFIX_PATH ${CMAKE_SOURCE_DIR}/third_party)
FIND_PACKAGE(oatpp REQUIRED)
FIND_PACKAGE(oatpp-swagger REQUIRED)
FIND_PACKAGE(oatpp-postgresql REQUIRED)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src)
FILE(GLOB_RECURSE UTILS_SRC ${CMAKE_SOURCE_DIR}/src/utils/*.cpp)
2023-12-21 17:52:03 +08:00
FILE(GLOB_RECURSE SERVICE_SRC ${CMAKE_SOURCE_DIR}/src/service/*.cpp)
2023-12-19 17:52:59 +08:00
ADD_EXECUTABLE(QuickExamBackend
${CMAKE_SOURCE_DIR}/src/QuickExamBackend.cpp
2023-12-21 17:52:03 +08:00
${UTILS_SRC}
${SERVICE_SRC}
)
2023-12-18 17:50:56 +08:00
2023-12-19 17:52:59 +08:00
TARGET_LINK_LIBRARIES(QuickExamBackend
2023-12-18 17:50:56 +08:00
PUBLIC oatpp::oatpp
PUBLIC oatpp::oatpp-swagger
PUBLIC oatpp::oatpp-postgresql
2023-12-19 17:52:59 +08:00
)