Fix bucket pickup with scale-aware aiming and build-local Botcraft patches
This commit is contained in:
1 parent
0a6193f68e
commit
12c7332337
10 files changed
+416
-40
No files matched your search
+3
-3
@@ -26,7 +26,7 @@ if(MINGW)
|
||||
set(BOTCRAFT_WINDOWS_BETTER_SLEEP OFF CACHE BOOL "" FORCE)
|
||||
endif()
|
||||
include(cmake/ApplyBotcraftPatches.cmake)
|
||||
add_subdirectory(3rd/Botcraft EXCLUDE_FROM_ALL)
|
||||
add_subdirectory("${BILICRAFT_BOTCRAFT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/_deps/Botcraft-build" EXCLUDE_FROM_ALL)
|
||||
|
||||
# Botcraft's public DLL interfaces exchange STL objects: match its MSVC CRT.
|
||||
if(MSVC)
|
||||
@@ -43,7 +43,7 @@ target_include_directories(bilicraft_bot_actions PUBLIC "${CMAKE_CURRENT_SOURCE_
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(bilicraft_bot_actions PUBLIC Threads::Threads)
|
||||
|
||||
add_library(bilicraft_bot_client STATIC src/BilicraftClient.cpp src/ActionExecutor.cpp src/EntityInteraction.cpp)
|
||||
add_library(bilicraft_bot_client STATIC src/BilicraftClient.cpp src/ActionExecutor.cpp src/EntityInteraction.cpp src/BucketAim.cpp)
|
||||
target_link_libraries(bilicraft_bot_client PUBLIC bilicraft_bot_config bilicraft_bot_actions botcraft)
|
||||
|
||||
add_executable(bilicraft-bot main.cpp)
|
||||
@@ -73,7 +73,7 @@ if(BUILD_TESTING)
|
||||
else()
|
||||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
||||
endif()
|
||||
add_subdirectory(3rd/googletest EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(3rd/googletest "${CMAKE_CURRENT_BINARY_DIR}/_deps/googletest-build" EXCLUDE_FROM_ALL)
|
||||
include(GoogleTest)
|
||||
add_executable(app_config_tests tests/AppConfigTests.cpp)
|
||||
target_link_libraries(app_config_tests PRIVATE bilicraft_bot_config GTest::gtest_main)
|
||||
|
||||
Reference in new issue
Block a user