From 7e42f595c9fab309e6898fbe9551ff1ebbca6fc4 Mon Sep 17 00:00:00 2001 From: zhenyan121 <3367366583@qq.com> Date: Fri, 26 Jun 2026 17:23:35 +0800 Subject: [PATCH] build: add ZLIB dependency --- CMakeLists.txt | 2 ++ src/dev_panel.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c960656..2710e62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ endif() find_package(OpenGL REQUIRED) find_package(Protobuf REQUIRED) find_package(absl REQUIRED) +find_package(ZLIB REQUIRED) if (UNIX AND NOT APPLE) find_package(Freetype REQUIRED) @@ -207,6 +208,7 @@ target_link_libraries(${PROJECT_NAME} protobuf::libprotobuf absl::log absl::check + ZLIB::ZLIB ) if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") diff --git a/src/dev_panel.cpp b/src/dev_panel.cpp index b1fd45b..acf3ea2 100644 --- a/src/dev_panel.cpp +++ b/src/dev_panel.cpp @@ -113,6 +113,7 @@ void DevPanel::show_about_table_bar() { ImGui::Text("Tbb"); ImGui::Text("Asio"); ImGui::Text("protobuf"); + ImGui::Text("zlib"); ImGui::Separator(); ImGui::Text("Special Thanks"); ImGui::Text("TANGERIME");