mirror of
https://github.com/Syping/dtranslatebot.git
synced 2026-04-01 05:20:22 +02:00
ported translator to curl, removed EL7 + Windows support
This commit is contained in:
parent
ecece11eac
commit
63399a010d
18 changed files with 250 additions and 101 deletions
|
|
@ -24,6 +24,8 @@ include(GNUInstallDirs)
|
|||
# dtranslatebot Source files
|
||||
set(DTRANSLATEBOT_HEADERS
|
||||
src/core/database.h
|
||||
src/core/http_request.h
|
||||
src/core/http_response.h
|
||||
src/core/message_queue.h
|
||||
src/core/regex.h
|
||||
src/core/settings.h
|
||||
|
|
@ -41,6 +43,7 @@ set(DTRANSLATEBOT_HEADERS
|
|||
)
|
||||
set(DTRANSLATEBOT_SOURCES
|
||||
src/core/database.cpp
|
||||
src/core/http_request.cpp
|
||||
src/core/main.cpp
|
||||
src/core/message_queue.cpp
|
||||
src/core/settings.cpp
|
||||
|
|
@ -59,6 +62,12 @@ set(DTRANSLATEBOT_SOURCES
|
|||
# dtranslatebot Module Path
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
||||
# curl Library
|
||||
find_package(CURL REQUIRED)
|
||||
list(APPEND DTRANSLATEBOT_LIBRARIES
|
||||
CURL::libcurl
|
||||
)
|
||||
|
||||
# Boost C++ Libraries
|
||||
option(WITH_BOOST "Build with Boost C++ Libraries" OFF)
|
||||
if (WITH_BOOST)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue