aboutsummaryrefslogtreecommitdiff
path: root/cmake/fetch-libfixmath.cmake
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-07-04 00:55:59 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-07-06 22:21:50 +0200
commit892ecce78dec37a1b2701611dd72986442cd094d (patch)
treebbd7fb0a0229795bf52d0b8a9ff9b06251363a67 /cmake/fetch-libfixmath.cmake
parent99554cc243c4b2ec290639a04ebc2f189890d6dd (diff)
downloadwnix-892ecce78dec37a1b2701611dd72986442cd094d.tar.gz
Import project skeleton from rts
https://gitea.privatedns.org/xavi/rts
Diffstat (limited to 'cmake/fetch-libfixmath.cmake')
-rw-r--r--cmake/fetch-libfixmath.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/fetch-libfixmath.cmake b/cmake/fetch-libfixmath.cmake
new file mode 100644
index 0000000..6137dd5
--- /dev/null
+++ b/cmake/fetch-libfixmath.cmake
@@ -0,0 +1,8 @@
+find_path(libfixmath "CMakeLists.txt"
+ PATHS "${PROJECT_SOURCE_DIR}/libfixmath/"
+ NO_DEFAULT_PATH)
+
+if(${libfixmath} STREQUAL "libfixmath-NOTFOUND")
+ message(STATUS "Fetching submodules...")
+ execute_process(COMMAND git submodule update --init --recursive)
+endif()