mirror of
https://github.com/Syping/dtranslatebot.git
synced 2026-04-01 05:20:22 +02:00
add Containerfile and increase version to 0.3.0
This commit is contained in:
parent
63399a010d
commit
1164b18fd5
3 changed files with 68 additions and 9 deletions
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
cmake_policy(VERSION 3.16...3.27)
|
||||
project(dtranslatebot VERSION 0.2.0 LANGUAGES CXX)
|
||||
project(dtranslatebot VERSION 0.3.0 LANGUAGES CXX)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
# dtranslatebot Source files
|
||||
|
|
@ -62,12 +62,6 @@ 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)
|
||||
|
|
@ -80,6 +74,9 @@ if (WITH_BOOST)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
# curl Library
|
||||
find_package(CURL REQUIRED)
|
||||
|
||||
# D++ Discord API Library for Bots
|
||||
option(WITH_DPP_STATIC_BUNDLE "Build with DPP Static Bundle" OFF)
|
||||
if (WITH_DPP_STATIC_BUNDLE)
|
||||
|
|
@ -133,7 +130,7 @@ target_compile_definitions(dtranslatebot PRIVATE
|
|||
if (MSVC AND MSVC_VERSION GREATER_EQUAL 1914)
|
||||
target_compile_options(dtranslatebot PRIVATE $<$<COMPILE_LANGUAGE:CXX>:/Zc:__cplusplus>)
|
||||
endif()
|
||||
target_link_libraries(dtranslatebot PRIVATE ${DTRANSLATEBOT_LIBRARIES} ${DPP_LIBRARIES} Threads::Threads)
|
||||
target_link_libraries(dtranslatebot PRIVATE ${DTRANSLATEBOT_LIBRARIES} ${DPP_LIBRARIES} CURL::libcurl Threads::Threads)
|
||||
target_include_directories(dtranslatebot PRIVATE ${DPP_INCLUDE_DIR})
|
||||
set_target_properties(dtranslatebot PROPERTIES
|
||||
CXX_STANDARD 17
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue