From ae5b0bed1209863177b797d48263763ea9a291f0 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 24 Feb 2022 23:02:14 +0100 Subject: [PATCH] Import fixmath --- .gitmodules | 3 +++ CMakeLists.txt | 6 +----- libfixmath | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 .gitmodules create mode 160000 libfixmath diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..67d2deb --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libfixmath"] + path = libfixmath + url = https://gitea.privatedns.org/Xavi92/libfixmath.git diff --git a/CMakeLists.txt b/CMakeLists.txt index aa269d5..1ca63a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,11 +87,7 @@ endif() # libfixmath is already bundled with PSXSDK. if(NOT PS1_BUILD) - if("$ENV{FIXMATH_PATH}" STREQUAL "") - message(FATAL_ERROR "please define env variable FIXMATH_PATH") - endif() - - add_subdirectory($ENV{FIXMATH_PATH} ${CMAKE_BINARY_DIR}/libfixmath) + add_subdirectory(libfixmath) endif() add_subdirectory("res") diff --git a/libfixmath b/libfixmath new file mode 160000 index 0000000..33a383b --- /dev/null +++ b/libfixmath @@ -0,0 +1 @@ +Subproject commit 33a383b98e7517a22ab5dd65cdbc947a551a5f32