"Fossies" - the Fresh Open Source Software Archive

Member "dbus-1.13.18/tools/CMakeLists.txt" (1 Jul 2020, 3614 Bytes) of package /linux/misc/dbus-1.13.18.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "CMakeLists.txt": 1.13.16_vs_1.13.18.

    1 add_definitions("-DDBUS_COMPILATION")
    2 
    3 set(dbus_send_SOURCES
    4     dbus-print-message.c
    5     dbus-print-message.h
    6     dbus-send.c
    7     tool-common.c
    8     tool-common.h
    9 )
   10 
   11 set(dbus_monitor_SOURCES
   12     dbus-monitor.c
   13     dbus-print-message.c
   14     dbus-print-message.h
   15     tool-common.c
   16     tool-common.h
   17 )
   18 
   19 set(dbus_test_tool_SOURCES
   20     dbus-echo.c
   21     dbus-spam.c
   22     tool-common.c
   23     tool-common.h
   24     test-tool.c
   25     test-tool.h
   26 )
   27 
   28 set(dbus_update_activation_environment_SOURCES
   29     dbus-update-activation-environment.c
   30     tool-common.c
   31     tool-common.h
   32 )
   33 
   34 if(WIN32)
   35 set(dbus_launch_SOURCES
   36     dbus-launch-win.c
   37 )
   38 else(WIN32)
   39 set(dbus_launch_SOURCES
   40     dbus-launch.c
   41     tool-common.c
   42     tool-common.h
   43 )
   44 endif()
   45 
   46 if(DBUS_BUILD_X11)
   47 set(dbus_launch_SOURCES
   48      ${dbus_launch_SOURCES}
   49      dbus-launch-x11.c
   50 )
   51 include_directories(${X11_INCLUDE_DIR})
   52 endif()
   53 
   54 set(dbus_cleanup_sockets_SOURCES
   55     dbus-cleanup-sockets.c
   56 )
   57 
   58 set(dbus_run_session_SOURCES
   59     dbus-run-session.c
   60 )
   61 
   62 set(dbus_uuidgen_SOURCES
   63     dbus-uuidgen.c
   64 )
   65 
   66 if(NOT WIN32)
   67     add_executable(dbus-cleanup-sockets ${dbus_cleanup_sockets_SOURCES})
   68     target_link_libraries(dbus-cleanup-sockets ${DBUS_LIBRARIES})
   69     install(TARGETS dbus-cleanup-sockets ${INSTALL_TARGETS_DEFAULT_ARGS})
   70 endif()
   71 
   72 if(WIN32)
   73     add_executable_version_info(dbus_send_SOURCES "dbus-send")
   74 endif()
   75 
   76 add_executable(dbus-send ${dbus_send_SOURCES})
   77 target_link_libraries(dbus-send ${DBUS_LIBRARIES})
   78 install(TARGETS dbus-send ${INSTALL_TARGETS_DEFAULT_ARGS})
   79 
   80 if(WIN32)
   81     add_executable_version_info(dbus_test_tool_SOURCES "dbus-test-tool")
   82 endif()
   83 
   84 add_executable(dbus-test-tool ${dbus_test_tool_SOURCES})
   85 target_link_libraries(dbus-test-tool ${DBUS_LIBRARIES})
   86 install(TARGETS dbus-test-tool ${INSTALL_TARGETS_DEFAULT_ARGS})
   87 
   88 if(WIN32)
   89     add_executable_version_info(dbus_update_activation_environment_SOURCES "dbus-update-activation-environment")
   90 endif()
   91 if(WIN32 AND NOT MSVC)
   92     add_uac_manifest(dbus_update_activation_environment_SOURCES)
   93 endif()
   94 add_executable(dbus-update-activation-environment ${dbus_update_activation_environment_SOURCES})
   95 target_link_libraries(dbus-update-activation-environment ${DBUS_LIBRARIES})
   96 install(TARGETS dbus-update-activation-environment ${INSTALL_TARGETS_DEFAULT_ARGS})
   97 
   98 if(WIN32)
   99     add_executable_version_info(dbus_launch_SOURCES "dbus-launch")
  100 endif()
  101 
  102 add_executable(dbus-launch ${dbus_launch_SOURCES})
  103 target_link_libraries(dbus-launch ${DBUS_LIBRARIES})
  104 if(DBUS_BUILD_X11)
  105     target_link_libraries(dbus-launch ${X11_LIBRARIES} )
  106 endif()
  107 install(TARGETS dbus-launch ${INSTALL_TARGETS_DEFAULT_ARGS})
  108 
  109 if(WIN32)
  110     add_executable_version_info(dbus_monitor_SOURCES "dbus-monitor")
  111 endif()
  112 
  113 add_executable(dbus-monitor ${dbus_monitor_SOURCES})
  114 target_link_libraries(dbus-monitor ${DBUS_LIBRARIES})
  115 install(TARGETS dbus-monitor ${INSTALL_TARGETS_DEFAULT_ARGS})
  116 
  117 if(WIN32)
  118     add_executable_version_info(dbus_run_session_SOURCES "dbus-run-session")
  119 endif()
  120 
  121 add_executable(dbus-run-session ${dbus_run_session_SOURCES})
  122 target_link_libraries(dbus-run-session ${DBUS_INTERNAL_LIBRARIES})
  123 install(TARGETS dbus-run-session ${INSTALL_TARGETS_DEFAULT_ARGS})
  124 
  125 if(NOT WIN32)
  126     add_executable(dbus-uuidgen ${dbus_uuidgen_SOURCES})
  127     target_link_libraries(dbus-uuidgen ${DBUS_LIBRARIES})
  128     install(TARGETS dbus-uuidgen ${INSTALL_TARGETS_DEFAULT_ARGS})
  129 endif()
  130 
  131 # create the /var/lib/dbus directory for dbus-uuidgen
  132 install(DIRECTORY DESTINATION ${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/dbus)
  133 
  134 set(EXAMPLES_SCRIPTS
  135     GetAllMatchRules.py
  136 )
  137 
  138 install(FILES ${EXAMPLES_SCRIPTS} DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/dbus/examples)