基本可用。
This commit is contained in:
@@ -13,8 +13,8 @@ if (MSVC)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib/${CMAKE_BUILD_TYPE})
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}/)
|
||||
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib/)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/)
|
||||
|
||||
find_package(CURL CONFIG REQUIRED)
|
||||
find_package(OpenSSL CONFIG REQUIRED)
|
||||
@@ -29,14 +29,17 @@ bf.config.cpp bf.config.h
|
||||
bf.request.cpp bf.request.h
|
||||
bf.interface.cpp bf.interface.h
|
||||
bf.util.cpp bf.util.h
|
||||
bf.xlnt.cpp bf.xlnt.h
|
||||
)
|
||||
|
||||
add_executable(baidu_fanyi main.cpp ${SOURCES})
|
||||
add_executable(cli_test cli_test.cpp)
|
||||
target_link_libraries(baidu_fanyi PRIVATE
|
||||
xlnt::xlnt OpenSSL::SSL OpenSSL::Crypto
|
||||
CURL::libcurl nlohmann_json::nlohmann_json
|
||||
CLI11::CLI11 spdlog::spdlog fmt::fmt
|
||||
)
|
||||
target_link_libraries(cli_test PRIVATE CLI11::CLI11)
|
||||
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
|
||||
Reference in New Issue
Block a user