1 include( TestBigEndian )
5 set( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} )
8 set( CMAKE_CXX_FLAGS "-pipe -fvisibility=hidden -pedantic -Wall -Wno-unused -Wno-switch -Wno-long-long" )
9 set( CMAKE_C_FLAGS "-pipe -fvisibility=hidden -pedantic -Wall -Wno-unused -Wno-switch -Wno-long-long" )
10 endif( UNIX OR MINGW )
12 TEST_BIG_ENDIAN( BigEndian )
13 if( BigEndian EQUAL 1 )
14 add_definitions( -DAWFUL_BIG_ENDIAN )
15 else( BigEndian EQUAL 1 )
16 add_definitions( -DAWFUL_LITTLE_ENDIAN )
17 endif( BigEndian EQUAL 1 )
19 include_directories( ${PROJECT_SOURCE_DIR} )
20 include_directories( ${PROJECT_SOURCE_DIR}/libs )
21 link_directories( ${PROJECT_SOURCE_DIR}/libs )
23 subdirs( core libs lua io abf math renderer gui sdl app )
24 #subdirs( core io abf )