1
project(textedit_grantlee)
3
cmake_minimum_required(VERSION 2.6)
5
find_package(Qt4 REQUIRED)
6
find_package(Grantlee REQUIRED)
8
add_definitions(${QT_DEFINITIONS})
9
add_definitions(-DQT_GUI_LIB)
10
add_definitions(-DQT_NO_KEYWORDS)
12
include(${Grantlee_USE_FILE})
16
${QT_QTGUI_INCLUDE_DIR}
18
${Grantlee_INCLUDE_DIRS}
23
grantlee_add_plugin(customtags
25
audiotextdocumentoutputter
31
target_link_libraries(customtags ${Grantlee_GUI_LIBRARIES})
36
configure_file(grantlee_paths.h.cmake ${PROJECT_BINARY_DIR}/grantlee_paths.h)
38
set(textedit_example_SRCS
45
qt4_automoc( textedit_example_MOC_SRCS ${textedit_example_SRCS} )
47
set(textedit_example_RCSS
52
textedit_example_RCS_SRCS
53
${textedit_example_RCSS}
56
add_executable(textedit
57
${textedit_example_SRCS}
58
${textedit_example_RCS_SRCS}
59
${textedit_example_UI_SRCS}
62
target_link_libraries(
64
${QT_QTCORE_LIBRARIES}
66
${QT_QTWEBKIT_LIBRARIES}
67
${QT_PHONON_LIBRARIES}
68
${Grantlee_CORE_LIBRARIES}