From 96bd73ae020ecca1f94698744c77498a89ad19f7 Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 13:10:52 +0500 Subject: Graft build scripts and buffer code from QFengine --- deps/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'deps/CMakeLists.txt') diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index e5cc4a7..7d94219 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -14,3 +14,11 @@ add_subdirectory(salad) add_subdirectory(spdlog) add_subdirectory(stb) add_subdirectory(thread_pool) + +find_package(Python3 REQUIRED COMPONENTS Interpreter) +add_custom_target(thirdparty_txt ALL + COMMAND ${Python3_EXECUTABLE} "${CMAKE_CURRENT_LIST_DIR}/thirdparty.py" "${CMAKE_CURRENT_LIST_DIR}" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/thirdparty.txt" + DEPENDS "${CMAKE_CURRENT_LIST_DIR}/thirdparty.py" + WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/thirdparty.txt" DESTINATION ".") -- cgit