mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
66 lines
1.1 KiB
CMake
66 lines
1.1 KiB
CMake
|
cmake_minimum_required( VERSION 3.16 )
|
||
|
|
||
|
project( mathlib )
|
||
|
add_library( ${PROJECT_NAME} )
|
||
|
|
||
|
start_sources()
|
||
|
|
||
|
add_sources( SOURCE_GROUP "Hash"
|
||
|
"adler32.cpp"
|
||
|
"adler32.h"
|
||
|
"crc32.cpp"
|
||
|
"crc32.h"
|
||
|
"IceKey.cpp"
|
||
|
"IceKey.H"
|
||
|
"sha1.cpp"
|
||
|
"sha1.h"
|
||
|
"sha256.cpp"
|
||
|
"sha256.h"
|
||
|
)
|
||
|
|
||
|
add_sources( SOURCE_GROUP "RNG"
|
||
|
"halton.cpp"
|
||
|
"halton.h"
|
||
|
"randsse.cpp"
|
||
|
"ssenoise.cpp"
|
||
|
)
|
||
|
|
||
|
add_sources( SOURCE_GROUP "Vector"
|
||
|
"bitvec.h"
|
||
|
"color.h"
|
||
|
"color_conversion.cpp"
|
||
|
"compressed_vector.h"
|
||
|
"fltx4.h"
|
||
|
"ssemath.h"
|
||
|
"ssequaternion.h"
|
||
|
"transform.cpp"
|
||
|
"transform.h"
|
||
|
"vector.h"
|
||
|
"vector2d.h"
|
||
|
"vector4d.h"
|
||
|
"vmatrix.cpp"
|
||
|
"vmatrix.h"
|
||
|
"vplane.h"
|
||
|
)
|
||
|
|
||
|
add_sources( SOURCE_GROUP "Math"
|
||
|
"almostequal.cpp"
|
||
|
"fbits.cpp"
|
||
|
"fbits.h"
|
||
|
"math_pfns.h"
|
||
|
"mathlib.h"
|
||
|
"mathlib_base.cpp"
|
||
|
"noisedata.h"
|
||
|
"parallel_for.h"
|
||
|
"powsse.cpp"
|
||
|
"sseconst.cpp"
|
||
|
"ssemath.h"
|
||
|
"swap.h"
|
||
|
)
|
||
|
|
||
|
end_sources()
|
||
|
|
||
|
# Setup precompiled header
|
||
|
target_precompile_headers( ${PROJECT_NAME} PRIVATE mathlib_pch.h )
|
||
|
target_compile_definitions( ${PROJECT_NAME} PRIVATE -DBUILDING_MATHLIB )
|