mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
Restored HAVE_MMX definition in CMake
This commit is contained in:
parent
df35d53a57
commit
33b69a27ae
1 changed files with 19 additions and 0 deletions
|
@ -705,6 +705,25 @@ else()
|
||||||
set( OTHER_SYSTEM_SOURCES ${PLAT_WIN32_SOURCES} ${PLAT_OSX_SOURCES} ${PLAT_COCOA_SOURCES} )
|
set( OTHER_SYSTEM_SOURCES ${PLAT_WIN32_SOURCES} ${PLAT_OSX_SOURCES} ${PLAT_COCOA_SOURCES} )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if( HAVE_MMX )
|
||||||
|
add_definitions( -DHAVE_MMX=1 )
|
||||||
|
|
||||||
|
set( SYSTEM_SOURCES ${SYSTEM_SOURCES}
|
||||||
|
gl/hqnx_asm/hq2x_asm.cpp
|
||||||
|
gl/hqnx_asm/hq3x_asm.cpp
|
||||||
|
gl/hqnx_asm/hq4x_asm.cpp
|
||||||
|
gl/hqnx_asm/hqnx_asm_Image.cpp)
|
||||||
|
|
||||||
|
if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
||||||
|
set_source_files_properties(
|
||||||
|
gl/hqnx_asm/hq2x_asm.cpp
|
||||||
|
gl/hqnx_asm/hq3x_asm.cpp
|
||||||
|
gl/hqnx_asm/hq4x_asm.cpp
|
||||||
|
gl/textures/gl_hqresize.cpp
|
||||||
|
PROPERTIES COMPILE_FLAGS "-mmmx" )
|
||||||
|
endif( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
||||||
|
endif( HAVE_MMX )
|
||||||
|
|
||||||
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/xlat_parser.c ${CMAKE_CURRENT_BINARY_DIR}/xlat_parser.h
|
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/xlat_parser.c ${CMAKE_CURRENT_BINARY_DIR}/xlat_parser.h
|
||||||
COMMAND lemon -C${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/xlat/xlat_parser.y
|
COMMAND lemon -C${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/xlat/xlat_parser.y
|
||||||
DEPENDS lemon ${CMAKE_CURRENT_SOURCE_DIR}/xlat/xlat_parser.y )
|
DEPENDS lemon ${CMAKE_CURRENT_SOURCE_DIR}/xlat/xlat_parser.y )
|
||||||
|
|
Loading…
Reference in a new issue