mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-05 20:40:30 +00:00
de5d4715c2
CMake 2.4, since the distros don't seem to consider 2.6 stable yet. As a bonus, GTK+ is no longer a required dependency; now it's optional. - Made dehsupp ignore CR characters, so it doesn't spew warnings on Linux. SVN r1092 (trunk)
32 lines
819 B
CMake
32 lines
819 B
CMake
cmake_minimum_required( VERSION 2.4 )
|
|
include( CheckFunctionExists )
|
|
include( CheckTypeSize )
|
|
|
|
set( PACKAGE_NAME re2c )
|
|
set( PACKAGE_TARNAME re2c )
|
|
set( PACKAGE_VERSION 0.12.3 )
|
|
set( PACKAGE_STRING "re2c 0.12.3" )
|
|
set( PACKAGE_BUGREPORT "re2c-general@lists.sourceforge.net" )
|
|
|
|
CHECK_FUNCTION_EXISTS( strdup HAVE_STRDUP )
|
|
CHECK_FUNCTION_EXISTS( strndup HAVE_STRNDUP )
|
|
|
|
CHECK_TYPE_SIZE( char SIZEOF_CHAR )
|
|
CHECK_TYPE_SIZE( short SIZEOF_SHORT )
|
|
CHECK_TYPE_SIZE( int SIZEOF_INT )
|
|
CHECK_TYPE_SIZE( long SIZEOF_LONG )
|
|
|
|
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h )
|
|
include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
|
|
add_definitions( -DHAVE_CONFIG_H )
|
|
|
|
add_executable( re2c
|
|
actions.cc
|
|
code.cc
|
|
dfa.cc
|
|
main.cc
|
|
mbo_getopt.cc
|
|
parser.cc
|
|
scanner.cc
|
|
substr.cc
|
|
translate.cc )
|