diff --git a/use_tdl/CMakeLists.txt b/use_tdl/CMakeLists.txt index 9b3da3f..efba733 100644 --- a/use_tdl/CMakeLists.txt +++ b/use_tdl/CMakeLists.txt @@ -2,4 +2,5 @@ cmake_minimum_required(VERSION 3.16) project(use_tdl LANGUAGES CXX) -add_executable(use_tdl main.cpp) \ No newline at end of file +add_executable(use_tdl main.cpp) +target_link_libraries(use_tdl PRIVATE zoost) \ No newline at end of file diff --git a/use_tdl/main.cpp b/use_tdl/main.cpp index 9d9cd3a..e0bb07d 100644 --- a/use_tdl/main.cpp +++ b/use_tdl/main.cpp @@ -9,7 +9,9 @@ #include #include #include +#include +using namespace zoost; namespace fs = std::filesystem; struct Args { @@ -98,6 +100,8 @@ int download_with_retry(const Args& args) int main(int argc, char** argv) { + Common::SetOutputU8(); + Args args; CLI::App app{"简单的下载器包装工具"};