使用cxxLibrary库。

This commit is contained in:
2026-03-19 10:01:04 +08:00
parent 8e7c1408f7
commit 5ecb188a04
9 changed files with 11 additions and 23 deletions

View File

@@ -10,23 +10,8 @@ if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
find_package(fmt REQUIRED)
find_package(tinyxml2 REQUIRED)
find_package(CLI11 REQUIRED)
find_package(spdlog REQUIRED)
find_package(Boost REQUIRED COMPONENTS locale filesystem nowide)
add_executable(fileUpdater main.cpp)
target_link_libraries(fileUpdater PRIVATE
fmt::fmt
Boost::locale
Boost::filesystem
Boost::nowide
CLI11::CLI11
spdlog::spdlog
tinyxml2::tinyxml2
zoost
)
target_link_libraries(fileUpdater PRIVATE cxxLibrary zoost)
include(GNUInstallDirs)
install(TARGETS fileUpdater