使用cxxLibrary库。
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +1,6 @@
|
||||
[submodule "zoost"]
|
||||
path = zoost
|
||||
url = https://www.sinxmiao.cn/taynpg/zoost
|
||||
[submodule "cxxLibrary"]
|
||||
path = cxxLibrary
|
||||
url = https://www.sinxmiao.cn/taynpg/cxxLibrary
|
||||
|
||||
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -25,7 +25,7 @@
|
||||
"-Wno-dev"
|
||||
],
|
||||
"cmake.configureSettings": {
|
||||
"CMAKE_TOOLCHAIN_FILE": "${env:VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake"
|
||||
//"CMAKE_TOOLCHAIN_FILE": "${env:VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake"
|
||||
},
|
||||
"cmake.options.statusBarVisibility": "visible",
|
||||
"cmake.generator": "Ninja",
|
||||
|
||||
@@ -28,5 +28,6 @@ message(STATUS "Version file config to: ${CMAKE_CURRENT_BINARY_DIR}")
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
add_subdirectory(zoost)
|
||||
add_subdirectory(cxxLibrary)
|
||||
add_subdirectory(strReplace)
|
||||
add_subdirectory(fileUpdater)
|
||||
1
cxxLibrary
Submodule
1
cxxLibrary
Submodule
Submodule cxxLibrary added at d1b8734ccc
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <CLI/CLI.hpp>
|
||||
#include <CLI11.hpp>
|
||||
#include <algorithm>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/nowide/iostream.hpp>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@echo off
|
||||
|
||||
echo Config CMake...
|
||||
cmake -B..\build -S..\ -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="%VCPKG_DIR%\scripts\buildsystems\vcpkg.cmake" -A x64
|
||||
cmake -B..\build -S..\ -DCMAKE_BUILD_TYPE=Release -A x64
|
||||
if errorlevel 1 (
|
||||
echo CMake Failed.
|
||||
pause
|
||||
|
||||
@@ -2,7 +2,5 @@ cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
project(strReplace LANGUAGES CXX)
|
||||
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
add_executable(strReplace main.cpp)
|
||||
target_link_libraries(strReplace PRIVATE Boost::headers)
|
||||
target_link_libraries(strReplace PRIVATE cxxLibrary zoost)
|
||||
2
zoost
2
zoost
Submodule zoost updated: 925faa9ac3...78c9c4b887
Reference in New Issue
Block a user