Initial commit

This commit is contained in:
Astatin3
2024-04-30 22:07:50 -06:00
commit 8565caa62a
8463 changed files with 4915934 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
cmake_minimum_required(VERSION 3.20)
project(McConnectBot)
set(CMAKE_CXX_STANDARD 23)
set(BOTCRAFT_GAME_VERSION 1.12.2)
set(BOTCRAFT_BUILD_DOC OFF)
set(BOTCRAFT_OUTPUT_DIR "/tmp/")
add_executable(McConnectBot main.cpp
CommandClient.cpp
CommandClient.h)
add_subdirectory(external/Botcraft)
# Find packages
find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)
# Link libraries statically (except OpenSSL)
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost REQUIRED COMPONENTS system filesystem)
target_link_libraries(McConnectBot PRIVATE
${Boost_LIBRARIES}
# Removed paths to static OpenSSL libraries
botcraft
)
# Set output directory to place the binary
set_target_properties(McConnectBot PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)