added compression to crow

This commit is contained in:
2026-02-22 22:06:07 +01:00
parent f805804bc0
commit a48ff4780b
4 changed files with 17 additions and 7 deletions

View File

@@ -89,11 +89,15 @@ target_link_options(${TARGET_NAME} PRIVATE
target_compile_definitions(${TARGET_NAME} PRIVATE
APPLICATION_NAME="${TARGET_NAME}"
SQLITE_THREADSAFE=1
ASIO_STANDALONE
SQLITE_THREADSAFE=1 # build sqlite with thread safty
ASIO_STANDALONE # use asio without boost
CROW_ENABLE_COMPRESSION # enable compression part of crow
)
target_link_libraries(${TARGET_NAME} pthread)
target_link_libraries(${TARGET_NAME}
pthread
z # zlib, used by crow for compression
)
# Optional: Print build type at configuration time
message(STATUS "Configuring build type: ${CMAKE_BUILD_TYPE}")