CMakeLists.txt 6.77 KB
Newer Older
1 2
add_definitions(-DTRANSLATION_DOMAIN=\"liboktetakasten\")

3
include_directories(
4 5
  system
  io
6
  view
7
  io/streamencoder
8
  liboktetawidgets
9
  ../core
10 11 12 13 14 15 16
  ../core/document
)

# if(KDE4_BUILD_TESTS)
#   add_subdirectory(tests)
# endif(KDE4_BUILD_TESTS)

17 18 19 20 21 22 23 24 25
set( oktetawidgets_LIB_SRCS
  liboktetawidgets/bytearrayvalidator.cpp
  liboktetawidgets/bytearraycombobox_p.cpp
  liboktetawidgets/bytearraycombobox.cpp
  liboktetawidgets/addressvalidator.cpp
  liboktetawidgets/addresscombobox_p.cpp
  liboktetawidgets/addresscombobox.cpp
)

26
set( okteta_values_streamencoder_SRCS
27 28 29
  io/streamencoder/values/bytearrayvaluesstreamencoderconfigeditor.cpp
  io/streamencoder/values/bytearrayvaluesstreamencoderconfigeditorfactory.cpp
  io/streamencoder/values/bytearrayvaluesstreamencoder.cpp
30 31
)

32
set( okteta_base32_streamencoder_SRCS
33 34 35
  io/streamencoder/base32/bytearraybase32streamencoderconfigeditor.cpp
  io/streamencoder/base32/bytearraybase32streamencoderconfigeditorfactory.cpp
  io/streamencoder/base32/bytearraybase32streamencoder.cpp
36 37
)

38
set( okteta_uuencoding_streamencoder_SRCS
39 40 41
  io/streamencoder/uuencoding/bytearrayuuencodingstreamencoderconfigeditor.cpp
  io/streamencoder/uuencoding/bytearrayuuencodingstreamencoderconfigeditorfactory.cpp
  io/streamencoder/uuencoding/bytearrayuuencodingstreamencoder.cpp
42 43
)

44 45 46 47 48 49
set( okteta_xxencoding_streamencoder_SRCS
  io/streamencoder/xxencoding/bytearrayxxencodingstreamencoderconfigeditor.cpp
  io/streamencoder/xxencoding/bytearrayxxencodingstreamencoderconfigeditorfactory.cpp
  io/streamencoder/xxencoding/bytearrayxxencodingstreamencoder.cpp
)

50
set( okteta_sourcecode_streamencoder_SRCS
51 52 53
  io/streamencoder/sourcecode/bytearraysourcecodestreamencoderconfigeditor.cpp
  io/streamencoder/sourcecode/bytearraysourcecodestreamencoderconfigeditorfactory.cpp
  io/streamencoder/sourcecode/bytearraysourcecodestreamencoder.cpp
54 55
)

56 57 58 59 60 61
set( okteta_srec_streamencoder_SRCS
  io/streamencoder/srec/bytearraysrecstreamencoderconfigeditor.cpp
  io/streamencoder/srec/bytearraysrecstreamencoderconfigeditorfactory.cpp
  io/streamencoder/srec/bytearraysrecstreamencoder.cpp
)

62 63 64 65 66 67
set( okteta_ihex_streamencoder_SRCS
  io/streamencoder/ihex/bytearrayihexstreamencoderconfigeditor.cpp
  io/streamencoder/ihex/bytearrayihexstreamencoderconfigeditorfactory.cpp
  io/streamencoder/ihex/bytearrayihexstreamencoder.cpp
)

68
set( okteta_viewtext_streamencoder_SRCS
69 70 71 72 73 74 75 76
  io/streamencoder/viewtext/abstractcolumntextrenderer.cpp
  io/streamencoder/viewtext/offsetcolumntextrenderer.cpp
  io/streamencoder/viewtext/bordercolumntextrenderer.cpp
  io/streamencoder/viewtext/abstractbytearraycolumntextrenderer.cpp
  io/streamencoder/viewtext/valuebytearraycolumntextrenderer.cpp
  io/streamencoder/viewtext/charbytearraycolumntextrenderer.cpp
  io/streamencoder/viewtext/bytearrayrowscolumntextrenderer.cpp
  io/streamencoder/viewtext/bytearrayviewtextstreamencoder.cpp
77 78
)

79
set( okteta_streamencoder_SRCS
80 81
  io/streamencoder/abstractbytearraystreamencoder.cpp
  io/streamencoder/bytearraytextstreamencoderpreview.cpp
82
  ${okteta_values_streamencoder_SRCS}
83 84
  io/streamencoder/chars/bytearraycharsstreamencoder.cpp
  io/streamencoder/base64/bytearraybase64streamencoder.cpp
85
  ${okteta_base32_streamencoder_SRCS}
86
  io/streamencoder/base85/bytearraybase85streamencoder.cpp
87
  ${okteta_uuencoding_streamencoder_SRCS}
88
  ${okteta_xxencoding_streamencoder_SRCS}
89
  ${okteta_srec_streamencoder_SRCS}
90
  ${okteta_ihex_streamencoder_SRCS}
91
  ${okteta_sourcecode_streamencoder_SRCS}
92
  ${okteta_viewtext_streamencoder_SRCS}
93 94
  io/bytearraystreamencoderfactory.cpp
  io/bytearraystreamencoderconfigeditorfactoryfactory.cpp
95 96
)

97
set( okteta_pattern_datagenerator_SRCS
98 99 100
  io/generator/pattern/bytearraypatterngeneratorconfigeditor.cpp
  io/generator/pattern/bytearraypatterngeneratorconfigeditorfactory.cpp
  io/generator/pattern/bytearraypatterngenerator.cpp
101 102
)

103
set( okteta_randomdata_datagenerator_SRCS
104 105 106
  io/generator/randomdata/bytearrayrandomdatageneratorconfigeditor.cpp
  io/generator/randomdata/bytearrayrandomdatageneratorconfigeditorfactory.cpp
  io/generator/randomdata/bytearrayrandomdatagenerator.cpp
107 108
)

109
set( okteta_sequence_datagenerator_SRCS
110
  io/generator/sequence/bytearraysequencegenerator.cpp
111 112 113
)

set( okteta_datagenerator_SRCS
114
  ${okteta_randomdata_datagenerator_SRCS}
115 116 117 118 119 120
  ${okteta_pattern_datagenerator_SRCS}
  ${okteta_sequence_datagenerator_SRCS}
  io/bytearraydatageneratorfactory.cpp
  io/bytearraydatageneratorconfigeditorfactoryfactory.cpp
)

121 122 123 124
set( okteta_viewprofile_io_SRCS
  io/bytearrayviewprofilesynchronizer.cpp
)

125 126 127
set( okteta_kastengui_io_SRCS
  ${okteta_streamencoder_SRCS}
  ${okteta_datagenerator_SRCS}
128
  ${okteta_viewprofile_io_SRCS}
129 130
)

131
set( okteta_kastengui_view_SRCS
132
  view/bytearrayjanusview.cpp
133 134
  view/bytearrayviewfactory.cpp
  view/bytearrayview.cpp
135 136 137 138 139 140
  view/bytearrayviewprofile.cpp
)

set( okteta_kastengui_system_SRCS
  system/bytearrayviewprofilelock.cpp
  system/bytearrayviewprofilemanager.cpp
141 142
)

143
set( okteta_kastengui_LIB_SRCS
144
  oktetakastengui.cpp
145
  ${oktetawidgets_LIB_SRCS}
146 147
  ${okteta_kastengui_view_SRCS}
  ${okteta_kastengui_io_SRCS}
148
  ${okteta_kastengui_system_SRCS}
149 150
)

151
set( okteta_kastengui_view_HDRS
152 153
  view/bytearrayviewfactory.h
  view/bytearrayview.h
154
  view/bytearrayviewprofile.h
155 156 157
)

set( okteta_kastengui_io_HDRS
158 159 160 161 162 163 164 165 166 167
  io/streamencoder/viewtext/bytearrayviewtextstreamencoder.h
  io/streamencoder/sourcecode/bytearraysourcecodestreamencoder.h
  io/streamencoder/chars/bytearraycharsstreamencoder.h
  io/streamencoder/values/bytearrayvaluesstreamencoder.h
  io/streamencoder/values/bytearrayvaluesstreamencoderconfigeditor.h
  io/streamencoder/sourcecode/bytearraysourcecodestreamencoderconfigeditor.h
  io/streamencoder/sourcecode/bytearraysourcecodestreamencoderconfigeditorfactory.h
  io/streamencoder/values/bytearrayvaluesstreamencoderconfigeditorfactory.h
  io/streamencoder/abstractbytearraystreamencoder.h
  io/streamencoder/bytearraytextstreamencoderpreview.h
168
  io/bytearrayviewprofilesynchronizer.h
169 170
)

171 172 173 174 175
set( okteta_kastengui_system_HDRS
  system/bytearrayviewprofilelock.h
  system/bytearrayviewprofilemanager.h
)

176
set( okteta_kastengui_LIB_HDRS
177
  ${CMAKE_CURRENT_BINARY_DIR}/oktetakastengui_export.h
178 179
  ${okteta_kastengui_view_HDRS}
  ${okteta_kastengui_io_HDRS}
180
  ${okteta_kastengui_system_HDRS}
181 182
)

183
add_library( ${oktetakastengui_LIB}  SHARED ${okteta_kastengui_LIB_SRCS} )
184
generate_export_header( ${oktetakastengui_LIB} )
185

186 187
target_link_libraries( ${oktetakastengui_LIB}
PUBLIC
188 189 190
  ${oktetakastencore_LIB}
  ${KASTENGUI_LIBS}
  ${KASTENCORE_LIBS}
191
  OktetaGui
192
  OktetaCore
193
PRIVATE
194
  Qt5::Script
Alex Richardson's avatar
Alex Richardson committed
195 196
  KF5::I18n
  KF5::Completion
197
)
198

199
set_target_properties( ${oktetakastengui_LIB}  PROPERTIES
200 201 202
  OUTPUT_NAME ${oktetakastengui_LIB_NAME}
  VERSION     ${OKTETAKASTEN_LIB_VERSION}
  SOVERSION   ${OKTETAKASTEN_LIB_SOVERSION}
203
)
204

205
install( TARGETS ${oktetakastengui_LIB}  ${INSTALL_TARGETS_DEFAULT_ARGS} )
206

207 208 209 210
install( FILES ${okteta_kastengui_LIB_HDRS}
  DESTINATION ${OKTETAKASTEN_INCLUDE_INSTALL_DIR}
  COMPONENT Devel
)