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

« back to all changes in this revision

Viewing changes to corelib/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(grantlee_core)
 
2
 
 
3
include_directories(
 
4
  ${QT_INCLUDES}
 
5
  ${PROJECT_BINARY_DIR}
 
6
  ${PROJECT_SOURCE_DIR}
 
7
  ${PROJECT_SOURCE_DIR}/../scriptabletags
 
8
)
 
9
 
 
10
include(${QT_USE_FILE})
 
11
 
 
12
configure_file(grantlee_version.h.cmake ${PROJECT_BINARY_DIR}/grantlee_version.h)
 
13
 
 
14
set (grantlee_core_SRCS
 
15
  context.cpp
 
16
  engine.cpp
 
17
  filterexpression.cpp
 
18
  lexer.cpp
 
19
  node.cpp
 
20
  nodebuiltins.cpp
 
21
  outputstream.cpp
 
22
  parser.cpp
 
23
  safestring.cpp
 
24
  template.cpp
 
25
  templateloader.cpp
 
26
  util.cpp
 
27
  variable.cpp
 
28
)
 
29
 
 
30
set(scriptabletags_FILES
 
31
  scriptablecontext.cpp
 
32
  scriptablefilterexpression.cpp
 
33
  scriptablenode.cpp
 
34
  scriptableparser.cpp
 
35
  scriptablesafestring.cpp
 
36
  scriptabletags.cpp
 
37
  scriptabletemplate.cpp
 
38
  scriptablevariable.cpp
 
39
  scriptablefilter.cpp
 
40
)
 
41
 
 
42
foreach(file ${scriptabletags_FILES})
 
43
  set(scriptabletags_SRCS ${scriptabletags_SRCS} ${CMAKE_SOURCE_DIR}/scriptabletags/${file})
 
44
endforeach()
 
45
 
 
46
set(Grantlee_CORE_LIB_SOVERSION 0)
 
47
 
 
48
set(moc_SRCS ${grantlee_core_SRCS} ${scriptabletags_SRCS})
 
49
 
 
50
qt4_automoc(${moc_SRCS})
 
51
 
 
52
add_library(grantlee_core SHARED
 
53
  ${grantlee_core_SRCS}
 
54
  ${scriptabletags_SRCS}
 
55
)
 
56
 
 
57
target_link_libraries(grantlee_core
 
58
  ${QT_QTCORE_LIBRARY}
 
59
  ${QT_QTSCRIPT_LIBRARY}
 
60
)
 
61
 
 
62
set_target_properties(grantlee_core PROPERTIES
 
63
  VERSION    ${Grantlee_VERSION_MAJOR}.${Grantlee_VERSION_MINOR}.${Grantlee_VERSION_PATCH}
 
64
  SOVERSION  ${Grantlee_CORE_LIB_SOVERSION}
 
65
  DEFINE_SYMBOL GRANTLEE_CORE_LIB_MAKEDLL
 
66
)
 
67
 
 
68
install(TARGETS grantlee_core
 
69
         RUNTIME DESTINATION ${BIN_INSTALL_DIR}
 
70
         LIBRARY DESTINATION ${LIB_INSTALL_DIR}
 
71
         ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
 
72
         COMPONENT Devel
 
73
)
 
74
 
 
75
install(FILES
 
76
  context.h
 
77
  engine.h
 
78
  exception.h
 
79
  filter.h
 
80
  filterexpression.h
 
81
  grantlee_core_export.h
 
82
  ${PROJECT_BINARY_DIR}/grantlee_version.h
 
83
  node.h
 
84
  outputstream.h
 
85
  parser.h
 
86
  safestring.h
 
87
  taglibraryinterface.h
 
88
  template.h
 
89
  templateloader.h
 
90
  token.h
 
91
  util.h
 
92
  variable.h
 
93
  DESTINATION ${INCLUDE_INSTALL_DIR}/grantlee COMPONENT Devel
 
94
)
 
95
 
 
96
install(FILES
 
97
  grantlee_core.h
 
98
  DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel
 
99
)
 
100