mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
Reorganizing fix library
This commit is contained in:
parent
f7b19d0bf4
commit
5aca8b7e5a
@ -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}
|
||||
|
@ -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
|
||||
>
|
||||
)
|
||||
|
@ -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:
|
@ -3,3 +3,4 @@ set(CPPS
|
||||
vector.cpp)
|
||||
|
||||
add_library(vecmat STATIC ${HEADERS} ${CPPS})
|
||||
target_link_libraries(vecmat fix)
|
||||
|
Loading…
Reference in New Issue
Block a user