1 include( TestBigEndian )
5 set( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} )
7 set( LUA_MODULES_PATH ${CMAKE_INSTALL_PREFIX}/share/awful/lua-modules )
8 add_definitions( -DINSTALL_PREFIX='"${CMAKE_INSTALL_PREFIX}"' )
9 add_definitions( -DLUA_MODULES_PATH='"${LUA_MODULES_PATH}"' )
11 if( CMAKE_COMPILER_IS_GNUCXX )
12 # strict aliasing disabled because current gcc4.3 produces the warning when taking a reference or a pointer
13 # to a type_info using typeid. Will have to be reenabled when it's fixed.
14 add_definitions( -pipe -fPIC -pedantic -Wall -Wno-unused -fno-strict-aliasing -Wno-switch -Wno-long-long )
15 # add_definitions( -pipe -fPIC -pedantic -Wall -Wno-unused -Wno-switch -Wno-long-long )
16 endif( CMAKE_COMPILER_IS_GNUCXX )
18 TEST_BIG_ENDIAN( BigEndian )
19 if( BigEndian EQUAL 1 )
20 add_definitions( -DAWFUL_BIG_ENDIAN )
21 else( BigEndian EQUAL 1 )
22 add_definitions( -DAWFUL_LITTLE_ENDIAN )
23 endif( BigEndian EQUAL 1 )
27 ${PROJECT_SOURCE_DIR}/include
28 ${PROJECT_BINARY_DIR}/src
29 ${PROJECT_SOURCE_DIR}/libs
31 link_directories( ${PROJECT_SOURCE_DIR}/libs )