diff options
Diffstat (limited to 'deps/CMakeLists.txt')
| -rw-r--r-- | deps/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
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 ".")
|
