--- a/CMakeLists.txt Sun Jan 17 12:08:53 2010 +0200
+++ b/CMakeLists.txt Wed Jan 20 19:47:58 2010 +0200
@@ -25,6 +25,10 @@
pkg_check_modules(GLIB REQUIRED glib-2.0)
pkg_check_modules(GMODULE REQUIRED gmodule-2.0)
pkg_check_modules(LM REQUIRED loudmouth-1.0)
+find_program(GREP_EXECUTABLE grep DOC "Grep binary to find functions in headers")
+if(GREP_EXECUTABLE)
+ execute_process(COMMAND ${GREP_EXECUTABLE} xmpp_is_online ${MCABBER_INCLUDE_DIR}/mcabber/xmpp.h OUTPUT_VARIABLE HAVE_XMPP_IS_ONLINE ERROR_QUIET)
+endif()
link_directories(${GLIB_LIBRARY_DIRS}
${GMODULE_LIBRARY_DIRS})
@@ -32,6 +36,7 @@
add_library(cmd MODULE cmd.c)
## Compiler setup
+configure_file(config.h.in config.h)
include_directories(SYSTEM ${GLIB_INCLUDE_DIRS}
${GMODULE_INCLUDE_DIRS}
${LM_INCLUDE_DIRS}