~ubuntu-branches/ubuntu/trusty/grantlee/trusty

« back to all changes in this revision

Viewing changes to examples/dbus-chat/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-07 09:19:01 UTC
  • Revision ID: james.westby@ubuntu.com-20101207091901-hsfsvnkxdshv4k8g
Tags: 0.1.7-0ubuntu3
Revert previous upload and try again with the correct patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
project(dbus_chat_grantlee)
2
 
 
3
 
cmake_minimum_required(VERSION 2.6)
4
 
 
5
 
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/modules/ )
6
 
 
7
 
find_package(Qt4 REQUIRED)
8
 
find_package(Automoc4 REQUIRED)
9
 
find_package(Grantlee REQUIRED)
10
 
 
11
 
 
12
 
add_definitions(${QT_DEFINITIONS})
13
 
add_definitions(-DQT_GUI_LIB)
14
 
 
15
 
include_directories(
16
 
  ${QT_INCLUDES}
17
 
  ${QT_QTGUI_INCLUDE_DIR}
18
 
  ${Grantlee_INCLUDE_DIR}
19
 
  ${PROJECT_BINARY_DIR}
20
 
)
21
 
 
22
 
configure_file(grantlee_paths.h.cmake ${PROJECT_BINARY_DIR}/grantlee_paths.h)
23
 
 
24
 
set(dbus_chat_example_SRCS
25
 
  chat.cpp
26
 
  chatitem.cpp
27
 
  chat_adaptor.cpp
28
 
  chat_interface.cpp
29
 
)
30
 
 
31
 
set(dbus_chat_example_UI
32
 
  chatmainwindow.ui
33
 
  chatsetnickname.ui
34
 
)
35
 
 
36
 
QT4_WRAP_UI(dbus_chat_example_UI_SRCS
37
 
  ${dbus_chat_example_UI}
38
 
)
39
 
 
40
 
automoc4_add_executable(dbus_chat
41
 
  ${dbus_chat_example_SRCS}
42
 
  ${dbus_chat_example_UI_SRCS}
43
 
)
44
 
 
45
 
target_link_libraries(
46
 
  dbus_chat
47
 
  ${QT_QTCORE_LIBRARIES}
48
 
  ${QT_QTGUI_LIBRARIES}
49
 
  ${QT_QTDBUS_LIBRARIES}
50
 
  ${Grantlee_LIBRARY}
51
 
)
52
 
 
53
 
 
54