Reorganizing fix library

This commit is contained in:
Azamat H. Hackimov 2024-04-27 00:01:23 +03:00 committed by Jeod
parent f7b19d0bf4
commit 5aca8b7e5a
5 changed files with 9 additions and 2 deletions

View File

@ -145,6 +145,7 @@ endif()
include_directories(
"cfile" # TODO: Remove after untying all modules
"ddebug" # -*-
"fix" # -*-
"lib" # TODO: Remove after untying all modules
"Descent3"
${PLATFORM_INCLUDES}

View File

@ -3,3 +3,8 @@ set(CPPS
fix.cpp)
add_library(fix STATIC ${HEADERS} ${CPPS})
target_include_directories(fix PUBLIC
$<BUILD_INTERFACE:
${PROJECT_SOURCE_DIR}/fix
>
)

View File

@ -61,7 +61,7 @@
#ifndef _FIX_H
#define _FIX_H
#include "math.h"
#include <cmath>
// Disable the "possible loss of data" warning
#pragma warning(disable : 4244)
@ -112,7 +112,7 @@ fix FloatToFixFast(float num);
// Fixed-point math functions in inline ASM form
#if defined(WIN32)
#include "win\fixwin32.h"
#include "fixwin32.h"
#endif
// use this instead of:

View File

@ -3,3 +3,4 @@ set(CPPS
vector.cpp)
add_library(vecmat STATIC ${HEADERS} ${CPPS})
target_link_libraries(vecmat fix)