Files
meteorbot-old/bot/CMakeLists.txt
T

33 lines
811 B
CMake
Raw Normal View History

2024-04-30 22:07:50 -06:00
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"
)