X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=README.cmake;h=69012fbead6c1368e99e389f5272a5ba29d2fd17;hb=5c4fb289437d1d80991ae74f689e34fcebb27b31;hp=0c30ba66ccb0db31b207f9c1d77807542f04d925;hpb=b5d36dc27d1905d4d46ad7f0097f0ea0e0776adb;p=platform%2Fupstream%2Fdbus.git diff --git a/README.cmake b/README.cmake index 0c30ba6..69012fb 100644 --- a/README.cmake +++ b/README.cmake @@ -2,7 +2,7 @@ This file describes how to compile dbus using the cmake build system Requirements ------------ -- cmake version >= 2.4.4 see http://www.cmake.org +- cmake version >= 2.6.0 see http://www.cmake.org - installed libexpat see http://sourceforge.net/projects/expat/ unsupported RelWithDebInfo builds could be fetched from http://sourceforge.net/projects/kde-windows/files/expat/ @@ -103,7 +103,7 @@ DBUS_BUILD_TESTS:BOOL=ON DBUS_DAEMON_NAME:STRING=dbus-daemon // Disable assertion checking -DBUS_DISABLE_ASSERTS:BOOL=OFF +DBUS_DISABLE_ASSERT:BOOL=OFF // Disable public API sanity checking DBUS_DISABLE_CHECKS:BOOL=OFF @@ -123,9 +123,6 @@ DBUS_ENABLE_VERBOSE_MODE:BOOL=ON // build XML documentation (requires xmlto or meinproc4) DBUS_ENABLE_XML_DOCS:BOOL=ON -// Some atomic integer implementation present -DBUS_HAVE_ATOMIC_INT:BOOL=OFF - // install required system libraries DBUS_INSTALL_SYSTEM_LIBS:BOOL=OFF @@ -138,12 +135,6 @@ DBUS_SESSION_BUS_CONNECT_ADDRESS:STRING=autolaunch: // system bus default address (only useful on Unix) DBUS_SYSTEM_BUS_DEFAULT_ADDRESS:STRING=unix:path=/var/run/dbus/system_bus_socket -// Use atomic integer implementation for 486 -DBUS_USE_ATOMIC_INT_486:BOOL=OFF - -// Use expat (== ON) or libxml2 (==OFF) -DBUS_USE_EXPAT:BOOL=ON - win32 only: // enable win32 debug port for message output DBUS_USE_OUTPUT_DEBUG_STRING:BOOL=OFF @@ -152,10 +143,6 @@ gcc only: // compile with coverage profiling instrumentation DBUS_GCOV_ENABLED:BOOL=OFF -linux only: -// build with dnotify support -DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX:BOOL=ON - solaris only: // enable console owner file HAVE_CONSOLE_OWNER_FILE:BOOL=ON @@ -163,6 +150,14 @@ HAVE_CONSOLE_OWNER_FILE:BOOL=ON // Directory to check for console ownership DBUS_CONSOLE_OWNER_FILE:STRING=/dev/console +// Linux only: +// enable inotify as dir watch backend +DBUS_BUS_ENABLE_INOTIFY:BOOL=ON + +*BSD only: +// enable kqueue as dir watch backend +DBUS_BUS_ENABLE_KQUEUE:BOOL=ON + x11 only: // Build with X11 auto launch support DBUS_BUILD_X11:BOOL=ON @@ -172,3 +167,27 @@ Note: The above mentioned options could be extracted after configuring from the output of running " help-options" in the build directory. The related entries start with CMAKE_ or DBUS_. + + +How to compile in dbus into clients with cmake +---------------------------------------------- + +To compile dbus library into a client application with cmake +the following cmake commands are required: + +1. call find_package to find dbus package + +find_package(DBus1) + +2. after specifing targets link dbus into target + +add_executable(test test.c) +target_link_libraries(test ${DBus1_LIBRARIES}) + +Adding ${DBus1_LIBRARIES} to targets also adds required dbus +include dirs and compiler definitions by default. There is +no need to add them with include_directories and add_definitions. + +To compile against dbus installed in a non standard location +specify -DDBus1_DIR=/lib[64]/cmake/DBus1 +on cmake command line.