mirror of
https://github.com/glest/glest-source.git
synced 2025-08-23 16:32:53 +02:00
Added streflop (standalone reproducible floating point library) layer to mega-glest (initial checkin only) and changed a few areas to use the library in linux
This commit is contained in:
16
source/shared_lib/sources/streflop/CMakeLists.txt
Normal file
16
source/shared_lib/sources/streflop/CMakeLists.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
AUX_SOURCE_DIRECTORY(libm/flt-32 libm_flt32_source)
|
||||
|
||||
SET(cxxflags "-w -O3 -I${CMAKE_CURRENT_SOURCE_DIR}/libm/headers")
|
||||
if (NOT $ENV{CXX} MATCHES "icpc")
|
||||
SET(cxxflags "${cxxflags} -mfpmath=sse -msse")
|
||||
endif (NOT $ENV{CXX} MATCHES "icpc")
|
||||
SET_SOURCE_FILES_PROPERTIES(${libm_flt32_source} PROPERTIES COMPILE_FLAGS "-DLIBM_COMPILING_FLT32 ${cxxflags}")
|
||||
|
||||
ADD_LIBRARY(streflop STATIC EXCLUDE_FROM_ALL
|
||||
SMath.cpp
|
||||
Random.cpp
|
||||
streflopC.cpp
|
||||
${libm_flt32_source}
|
||||
)
|
||||
set_target_properties(streflop PROPERTIES COMPILE_FLAGS "${PIC_FLAG}")
|
||||
#TODO do not use -fPIC for streflop (decreases performance)
|
Reference in New Issue
Block a user