~ubuntu-branches/ubuntu/precise/grantlee/precise

« back to all changes in this revision

Viewing changes to examples/textedit/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2010-06-11 23:41:45 UTC
  • Revision ID: james.westby@ubuntu.com-20100611234145-oas7rhdrbwy8j55c
Tags: upstream-0.1.1
ImportĀ upstreamĀ versionĀ 0.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
project(textedit_grantlee)
 
2
 
 
3
cmake_minimum_required(VERSION 2.6)
 
4
 
 
5
find_package(Qt4 REQUIRED)
 
6
find_package(Grantlee REQUIRED)
 
7
 
 
8
add_definitions(${QT_DEFINITIONS})
 
9
add_definitions(-DQT_GUI_LIB)
 
10
add_definitions(-DQT_NO_KEYWORDS)
 
11
 
 
12
include(${Grantlee_USE_FILE})
 
13
 
 
14
include_directories(
 
15
  ${QT_INCLUDES}
 
16
  ${QT_QTGUI_INCLUDE_DIR}
 
17
  ${PROJECT_BINARY_DIR}
 
18
  ${Grantlee_INCLUDE_DIRS}
 
19
)
 
20
 
 
21
## Grantlee plugin
 
22
 
 
23
grantlee_add_plugin(customtags
 
24
  customtagslibrary
 
25
  audiotextdocumentoutputter
 
26
 
 
27
  FILTERS
 
28
    filters
 
29
)
 
30
 
 
31
target_link_libraries(customtags ${Grantlee_GUI_LIBRARIES})
 
32
 
 
33
 
 
34
## Application
 
35
 
 
36
configure_file(grantlee_paths.h.cmake ${PROJECT_BINARY_DIR}/grantlee_paths.h)
 
37
 
 
38
set(textedit_example_SRCS
 
39
  main.cpp
 
40
  audiotextedit.cpp
 
41
  audioobject.cpp
 
42
  textedit.cpp
 
43
)
 
44
 
 
45
qt4_automoc( textedit_example_MOC_SRCS ${textedit_example_SRCS} )
 
46
 
 
47
set(textedit_example_RCSS
 
48
  textedit.qrc
 
49
)
 
50
 
 
51
qt4_add_resources(
 
52
  textedit_example_RCS_SRCS
 
53
  ${textedit_example_RCSS}
 
54
)
 
55
 
 
56
add_executable(textedit
 
57
  ${textedit_example_SRCS}
 
58
  ${textedit_example_RCS_SRCS}
 
59
  ${textedit_example_UI_SRCS}
 
60
)
 
61
 
 
62
target_link_libraries(
 
63
  textedit
 
64
  ${QT_QTCORE_LIBRARIES}
 
65
  ${QT_QTGUI_LIBRARIES}
 
66
  ${QT_QTWEBKIT_LIBRARIES}
 
67
  ${QT_PHONON_LIBRARIES}
 
68
  ${Grantlee_CORE_LIBRARIES}
 
69
)
 
70
 
 
71
 
 
72