This commit is contained in:
2022-08-28 18:29:11 +02:00
parent 2e8877837a
commit b199870d7e
3 changed files with 63 additions and 119 deletions

View File

@@ -24,19 +24,17 @@ add_executable(backend
src/controllers/admin.cpp
src/controllers/fs.cpp
src/controllers/user.cpp
src/controllers/auth/auth_common.cpp
src/controllers/auth/auth_basic.cpp
src/controllers/auth/auth_2fa.cpp
src/controllers/auth/auth_gitlab.cpp
src/filters/filters.h
src/filters/filters.cpp
src/controllers/auth/auth_gitlab.cpp)
)
if (MINGW)
target_link_libraries(backend -static-libgcc -static-libstdc++)
endif (MINGW)
find_package(Drogon CONFIG REQUIRED)
find_package(CURL CONFIG REQUIRED)
@@ -64,6 +62,8 @@ target_link_libraries(backend
${QR_LIBRARY}
)
install(TARGETS backend)
target_compile_options(backend PRIVATE
$<$<CONFIG:Debug>:-g -Wall -Wno-unknown-pragmas>
$<$<CONFIG:Release>:-O3>