summaryrefslogtreecommitdiffstats
path: root/poxml/CMakeLists.txt
blob: ed6c1aeba94ed47cc399355550bafbf1d67bc41c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#################################################
#
#  (C) 2012 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

add_definitions( -fexceptions )

add_subdirectory( antlr )


include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}/antlr
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### split2po (executable) #####################

tde_add_executable( split2po
  SOURCES split.cpp parser.cpp
  LINK kio-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


##### xml2pot (executable) ######################

tde_add_executable( xml2pot
  SOURCES xml2pot.cpp parser.cpp
  LINK kio-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


##### po2xml (executable) #######################

tde_add_executable( po2xml
  SOURCES GettextLexer.cpp GettextParser.cpp po2xml.cpp parser.cpp
  LINK antlr-static kio-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


##### swappo (executable) #######################

tde_add_executable( swappo
  SOURCES GettextLexer.cpp GettextParser.cpp swappo.cpp parser.cpp
  LINK antlr-static kio-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


##### transxx (executable) ######################

tde_add_executable( transxx
  SOURCES GettextLexer.cpp GettextParser.cpp transxx.cpp parser.cpp
  LINK antlr-static kio-shared
  DESTINATION ${BIN_INSTALL_DIR}
)