1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

cmake: seperate optimization options

This commit is contained in:
Stefan 2016-07-09 19:03:47 +02:00 committed by GitHub
parent f2babed36d
commit b3bc8ce689

View File

@ -177,16 +177,22 @@ endif(UNIX OR BCMHOST)
FIND_PACKAGE( Freetype REQUIRED )
include_directories( ${FREETYPE_INCLUDE_DIRS} )
if(OPT)
if(VEC4_OPT)
add_definitions(
-D__VEC4_OPT
)
endif(VEC4_OPT)
if(CRC_OPT)
list(APPEND GLideN64_SOURCES
CRC_OPT.cpp
)
list(REMOVE_ITEM GLideN64_SOURCES
CRC.cpp
)
endif(CRC_OPT)
if(NEON_OPT)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
EXEC_PROGRAM(cat ARGS "/proc/cpuinfo" OUTPUT_VARIABLE CPUINFO)
STRING(REGEX REPLACE "^.*(neon).*$" "\\1" NEON_THERE ${CPUINFO})
@ -203,7 +209,7 @@ if(OPT)
)
endif(NEON_THERE STREQUAL "neon")
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
endif(OPT)
endif(NEON_OPT)
# Build type