mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-11 21:00:53 +00:00
1a3ac9d0b3
Introduce the variable 'ZD_CMAKE_COMPILER_IS_GNUC(XX)_COMPATIBLE' and replace any occurrence of '"${CMAKE_C(XX)_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C(XX)_COMPILER_ID}" STREQUAL "Clang"' with it. This makes it possible to add more GCC compatible compilers in just one place.
30 lines
586 B
CMake
30 lines
586 B
CMake
cmake_minimum_required( VERSION 2.4 )
|
|
|
|
make_release_only()
|
|
|
|
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fomit-frame-pointer" )
|
|
endif( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
|
|
|
|
add_library( jpeg
|
|
jcomapi.c
|
|
jdapimin.c
|
|
jdapistd.c
|
|
jdatasrc.c
|
|
jdcoefct.c
|
|
jdcolor.c
|
|
jddctmgr.c
|
|
jdhuff.c
|
|
jdinput.c
|
|
jdmainct.c
|
|
jdmarker.c
|
|
jdmaster.c
|
|
jdmerge.c
|
|
jdphuff.c
|
|
jdpostct.c
|
|
jdsample.c
|
|
jerror.c
|
|
jidctint.c
|
|
jmemmgr.c
|
|
jutils.c )
|
|
target_link_libraries( jpeg )
|