2023-05-10 00:05:38 +02:00
|
|
|
cmake_minimum_required( VERSION 3.16 )
|
2023-05-13 00:14:53 +02:00
|
|
|
add_module( "lib" "mathlib" "" ${FOLDER_CONTEXT} )
|
2023-05-10 00:05:38 +02:00
|
|
|
|
|
|
|
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()
|
2023-05-13 11:57:57 +02:00
|
|
|
whole_program_optimization()
|
2023-05-10 00:05:38 +02:00
|
|
|
|
2023-05-13 11:57:57 +02:00
|
|
|
target_precompile_headers( ${PROJECT_NAME} PRIVATE
|
|
|
|
"mathlib_pch.h"
|
|
|
|
)
|
|
|
|
target_compile_definitions( ${PROJECT_NAME} PRIVATE
|
|
|
|
"BUILDING_MATHLIB"
|
|
|
|
)
|