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