cmake: add WITH_IMLIB2 WITH_DBUS to config.h.in

This commit is contained in:
Michael Gehring 2008-06-20 14:57:03 +02:00 committed by Julien Danjou
parent 69c2e771dc
commit 8b4f39900a
2 changed files with 3 additions and 2 deletions

View File

@ -67,7 +67,6 @@ FIND_LIBRARY(LIB_EV ev)
IF(WITH_DBUS) IF(WITH_DBUS)
pkg_check_modules(DBUS dbus-1) pkg_check_modules(DBUS dbus-1)
IF(DBUS_FOUND) IF(DBUS_FOUND)
ADD_DEFINITIONS(-DWITH_DBUS)
SET(AWE_MOD_LIBRARIES ${AWE_MOD_LIBRARIES} ${DBUS_LIBRARIES}) SET(AWE_MOD_LIBRARIES ${AWE_MOD_LIBRARIES} ${DBUS_LIBRARIES})
SET(AWE_MOD_INCLUDE_DIRS ${AWE_MOD_INCLUDE_DIRS} ${DBUS_INCLUDE_DIRS}) SET(AWE_MOD_INCLUDE_DIRS ${AWE_MOD_INCLUDE_DIRS} ${DBUS_INCLUDE_DIRS})
ELSE() ELSE()
@ -79,7 +78,6 @@ ENDIF()
IF(WITH_IMLIB2) IF(WITH_IMLIB2)
pkg_check_modules(IMLIB2 imlib2) pkg_check_modules(IMLIB2 imlib2)
IF(IMLIB2_FOUND) IF(IMLIB2_FOUND)
ADD_DEFINITIONS(-DWITH_IMLIB2)
SET(AWE_MOD_LIBRARIES ${AWE_MOD_LIBRARIES} ${IMLIB2_LIBRARIES}) SET(AWE_MOD_LIBRARIES ${AWE_MOD_LIBRARIES} ${IMLIB2_LIBRARIES})
SET(AWE_MOD_INCLUDE_DIRS ${AWE_MOD_INCLUDE_DIRS} ${IMLIB2_INCLUDE_DIRS}) SET(AWE_MOD_INCLUDE_DIRS ${AWE_MOD_INCLUDE_DIRS} ${IMLIB2_INCLUDE_DIRS})
ELSE() ELSE()

View File

@ -6,4 +6,7 @@
#define AWESOME_CONF_PATH "@AWESOME_CONF_PATH@" #define AWESOME_CONF_PATH "@AWESOME_CONF_PATH@"
#define VERSION "@VERSION@" #define VERSION "@VERSION@"
#cmakedefine WITH_DBUS
#cmakedefine WITH_IMLIB2
#endif //_CONFIG_H_ #endif //_CONFIG_H_