Adding scripts

This commit is contained in:
Vladislav Khorev committed 2026-04-03 19:46:43 +03:00
1 parent 995e2c8e5b
commit 63c9d7b35b
9 files changed
+432480 -9

No files matched your search

+3
View File
@@ -47,3 +47,6 @@ check_and_download("https://download.savannah.gnu.org/releases/freetype/freetype
# 8) SDL_ttf
check_and_download("https://github.com/libsdl-org/SDL_ttf/archive/refs/tags/release-2.24.0.zip" "release-2.24.0.zip" "SDL_ttf-release-2.24.0" "CMakeLists.txt")
# 9) pybind11
check_and_download("https://github.com/pybind/pybind11/archive/refs/tags/v3.0.3.zip" "pybind11-v3.0.3.zip" "pybind11-3.0.3" "CMakeLists.txt")
+11
View File
@@ -546,4 +546,15 @@ if(NOT TARGET boost_external_lib)
add_library(boost_external_lib INTERFACE)
# Boost заголовки находятся непосредственно в корне распакованной папки
target_include_directories(boost_external_lib INTERFACE "${BOOST_SRC_DIR}")
endif()
# ===========================================
# 9) pybind11 (3.0.3) - Python embedding
# ===========================================
set(PYBIND11_SRC_DIR "${THIRDPARTY_DIR}/pybind11-3.0.3")
if(NOT TARGET pybind11::headers)
# pybind11 is header-only; add_subdirectory gives us pybind11::embed which
# also locates and links the Python interpreter and development libraries.
add_subdirectory("${PYBIND11_SRC_DIR}" "${CMAKE_BINARY_DIR}/pybind11_build" EXCLUDE_FROM_ALL)
endif()