使用cxxLibrary库。
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user