From dd160374eab98dd0cb072495ea34c70562255717 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Thu, 12 Sep 2024 19:25:33 +0200 Subject: [PATCH] CMake: Bundle Teakra via FetchContent --- .gitmodules | 3 --- CMakeLists.txt | 7 +++++-- externals/teakra | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) delete mode 160000 externals/teakra diff --git a/.gitmodules b/.gitmodules index 78a97ba..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "externals/teakra"] - path = externals/teakra - url = https://github.com/mikage-emu/teakra.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b29763..112a73c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,8 +85,11 @@ if(NOT ANDROID) endif() endif () -# TODO: find_package-ify -add_subdirectory(externals/teakra) +include(FetchContent) +FetchContent_Declare(teakra + GIT_REPOSITORY https://github.com/mikage-emu/teakra.git + GIT_TAG f99ce8b0c0400b6e20a566ca0a3483ffb4b4e95c) +FetchContent_MakeAvailable(teakra) set_target_properties(teakra_c PROPERTIES EXCLUDE_FROM_ALL 1) add_subdirectory(source) diff --git a/externals/teakra b/externals/teakra deleted file mode 160000 index 019d18c..0000000 --- a/externals/teakra +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 019d18c7ee137899030b378feca038cd7789a1b7