QuickExam/CMakeLists.txt
2023-12-18 17:50:56 +08:00

21 lines
545 B
CMake

CMAKE_MINIMUM_REQUIRED(VERSION 3.22)
PROJECT(AnonExam)
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)
ADD_EXECUTABLE(AnonExamBackend
${CMAKE_SOURCE_DIR}/src/AnonExamBackend.cpp)
TARGET_LINK_LIBRARIES(AnonExamBackend
PUBLIC oatpp::oatpp
PUBLIC oatpp::oatpp-swagger
PUBLIC oatpp::oatpp-postgresql
)