From 03e47e1843644e45c44e61cc8597812b75f6436b Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 25 Aug 2023 03:43:41 -0400 Subject: [PATCH] move some crow files, working on a way to send files compressed without writing them first --- CMakeLists.txt | 5 +++++ include/crowsite/crow_includes.h | 1 - libs/BLT | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c8acfa3..e265c64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,9 @@ set(CROW_FEATURES compression) cmake_policy(SET CMP0057 NEW) #find_package(Crow) +set(CROW_BUILD_TESTS OFF) +set(CROW_BUILD_EXAMPLES OFF) +set(CROW_INSTALL OFF) add_subdirectory(libs/crow) find_package(CURL) @@ -39,6 +42,8 @@ file(GLOB_RECURSE source_files src/*.cpp) add_executable(crowsite ${source_files}) +target_compile_definitions(crowsite PUBLIC CROW_ENABLE_COMPRESSION) + target_link_libraries(crowsite BLT) target_link_libraries(crowsite Crow::Crow) target_link_libraries(crowsite ${CURL_LIBRARIES}) diff --git a/include/crowsite/crow_includes.h b/include/crowsite/crow_includes.h index 9d547ac..8a0af87 100644 --- a/include/crowsite/crow_includes.h +++ b/include/crowsite/crow_includes.h @@ -6,7 +6,6 @@ #define CROWSITE_CROW_INCLUDES_H #include -#define CROW_ENABLE_COMPRESSION #include "crow.h" #endif //CROWSITE_CROW_INCLUDES_H diff --git a/libs/BLT b/libs/BLT index 1b4e364..d3ed466 160000 --- a/libs/BLT +++ b/libs/BLT @@ -1 +1 @@ -Subproject commit 1b4e36416ae67d3a3789333ff965866ae45bb98b +Subproject commit d3ed46686eb0667c9824fbba5f90519efd2a50c3