Browse Source

Initial cmake conversion

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 2 years ago
parent
commit
3f7006b680

+ 123
- 0
CMakeLists.txt View File

@@ -0,0 +1,123 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek.banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+cmake_minimum_required( VERSION 2.8 )
13
+
14
+
15
+##### general package setup #####################
16
+
17
+project( tellico )
18
+set( VERSION 1.3.6 )
19
+
20
+
21
+##### include essential cmake modules ###########
22
+
23
+include( FindPkgConfig )
24
+include( CheckIncludeFile )
25
+include( CheckLibraryExists )
26
+include( CheckSymbolExists )
27
+include( CheckTypeSize )
28
+# EXAMPLE:
29
+# include( CheckCSourceCompiles )
30
+# include( CheckCXXSourceCompiles )
31
+
32
+enable_testing()
33
+
34
+
35
+##### include our cmake modules #################
36
+
37
+set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
38
+include( TDEMacros )
39
+
40
+
41
+##### setup install paths #######################
42
+
43
+include( TDESetupPaths )
44
+tde_setup_paths( )
45
+
46
+
47
+##### optional stuff ############################
48
+
49
+option( WITH_ALL_OPTIONS   "Enable all sane supported options" OFF )
50
+
51
+option( WITH_LIBKCDDB      "Enable FreeDB integration" ${WITH_ALL_OPTIONS} )
52
+option( WITH_LIBKCAL       "Enable KOrganizer integration" ${WITH_ALL_OPTIONS} )
53
+option( WITH_LIBBTPARSE    "Use btparse shared library" ${WITH_ALL_OPTIONS} )
54
+option( WITH_SAX_LOADER    "Use SAX document loading (experimental)" ${WITH_ALL_OPTIONS} )
55
+
56
+
57
+##### options comments ##########################
58
+
59
+# WITH_LIBKCDDB       enable searching via freedb
60
+# WITH_LIBKCAL        enable integration with KOrganizer
61
+# WITH_LIBBTPARSE     if enabled use system library btparse instead of build-in
62
+# WITH_SAX_LOADER     if enabled documents will be openned using SAX loader
63
+
64
+
65
+##### user requested modules ####################
66
+
67
+option( BUILD_DOC "Build documentation" ON )
68
+option( BUILD_TRANSLATIONS "Build translations" ON )
69
+option( BUILD_XMLCATALOG "" OFF )
70
+
71
+option( BUILD_AMAZON_SUPPORT "Build Amazon.com searching support" ON )
72
+option( BUILD_IMDB_SUPPORT "Build IMDb searching support" ON )
73
+option( BUILD_CDTEXT_SUPPORT "Build CD-Text support (Linux only)" ON )
74
+option( BUILD_OOO_SUPPORT "Build LibreOffice/OpenOffice.org support" OFF )
75
+option( BUILD_EXEMPI_SUPPORT "Build exempi support" ON )
76
+option( BUILD_POPPLER_SUPPORT "Build poppler support" ON )
77
+option( BUILD_WEBCAM_SUPPORT "Build support for scanning barcodes (experimental)" ON )
78
+
79
+
80
+##### configure checks ##########################
81
+
82
+include( ConfigureChecks.cmake )
83
+
84
+
85
+###### global compiler settings #################
86
+
87
+add_definitions(
88
+  -DHAVE_CONFIG_H
89
+)
90
+
91
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
92
+set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
93
+set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
94
+
95
+
96
+##### tellico directories #######################
97
+
98
+add_subdirectory( src )
99
+add_subdirectory( icons )
100
+add_subdirectory( xslt )
101
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
102
+tde_conditional_add_subdirectory( BUILD_DOC doc )
103
+
104
+
105
+##### other data ################################
106
+
107
+install( FILES tellico.desktop
108
+  DESTINATION ${XDG_APPS_INSTALL_DIR}
109
+)
110
+install( FILES tellico.xml
111
+  DESTINATION ${XDG_MIME_INSTALL_DIR}
112
+)
113
+install( FILES x-tellico.desktop
114
+  DESTINATION ${MIME_INSTALL_DIR}/application
115
+)
116
+install( FILES tellico.dtd tellico.tips
117
+  DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}
118
+)
119
+
120
+
121
+##### write configure files #####################
122
+
123
+configure_file( config.h.cmake config.h @ONLY )

+ 212
- 0
ConfigureChecks.cmake View File

@@ -0,0 +1,212 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek.banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+##### check for gcc visibility support #########
13
+# FIXME
14
+# This should check for [T]Qt3 visibility support
15
+
16
+if( WITH_GCC_VISIBILITY )
17
+  if( NOT UNIX )
18
+    tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" )
19
+  endif( NOT UNIX )
20
+  set( __KDE_HAVE_GCC_VISIBILITY 1 )
21
+  set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
22
+  set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
23
+endif( WITH_GCC_VISIBILITY )
24
+
25
+
26
+##### set architecture flags ####################
27
+tde_setup_architecture_flags( )
28
+
29
+
30
+##### required stuff ############################
31
+
32
+find_package( TQt )
33
+find_package( TDE )
34
+set( ENV{PKG_CONFIG_PATH} "${PKG_CONFIG_PATH}:$ENV{PKG_CONFIG_PATH}:${LIB_INSTALL_DIR}/pkgconfig" )
35
+
36
+
37
+##### check system configuration ################
38
+
39
+check_symbol_exists( strdup "string.h" HAVE_STRDUP_DECL )
40
+check_type_size( ushort USHORT )
41
+check_type_size( boolean BOOLEAN )
42
+
43
+check_type_size( "int" SIZEOF_INT )
44
+check_type_size( "long" SIZEOF_LONG )
45
+check_type_size( "short" SIZEOF_SHORT )
46
+check_type_size( "unsigned char" SIZEOF_UNSIGNED_CHAR )
47
+check_type_size( "unsigned int" SIZEOF_UNSIGNED_INT )
48
+check_type_size( "unsigned long" SIZEOF_UNSIGNED_LONG )
49
+check_type_size( "unsigned short" SIZEOF_UNSIGNED_SHORT )
50
+
51
+pkg_search_module( LIBXML libxml-2.0>=2.6.0 )
52
+if( NOT LIBXML_FOUND )
53
+  tde_message_fatal( "libxml at least 2.6.0 is required, but not found on your system" )
54
+endif( NOT LIBXML_FOUND )
55
+
56
+pkg_search_module( LIBXSLT libxslt>=1.0.19 )
57
+if( NOT LIBXSLT_FOUND )
58
+  tde_message_fatal( "libxslt at least 1.0.19 is required, but not found on your system" )
59
+endif( NOT LIBXSLT_FOUND )
60
+
61
+pkg_search_module( TAGLIB taglib )
62
+if( TAGLIB_FOUND )
63
+  set( HAVE_TAGLIB 1 )
64
+endif( TAGLIB_FOUND )
65
+
66
+pkg_search_module( YAZ yaz )
67
+if( YAZ_FOUND )
68
+  set( HAVE_YAZ 1 )
69
+endif( YAZ_FOUND )
70
+
71
+if( WITH_LIBKCDDB )
72
+  message( "-- checking for 'libkcddb'" )
73
+
74
+  find_path(
75
+    LIBKCDDB_INCLUDE_DIR
76
+      cddb.h
77
+    PATHS
78
+      ${TDE_INCLUDE_DIR}/tde/libkcddb
79
+      ${TDE_INCLUDE_DIR}/libkcddb
80
+    NO_DEFAULT_PATH
81
+  )
82
+
83
+  find_library(
84
+    LIBKCDDB_LIBRARY
85
+      kcddb
86
+    PATHS
87
+      ${TDE_LIB_DIR}
88
+      ${TQT_LIBRARY_DIRS}
89
+  )
90
+  if( LIBKCDDB_LIBRARY )
91
+    get_filename_component( LIBKCDDB_LIBRARY_DIR ${LIBKCDDB_LIBRARY} PATH CACHE )
92
+  endif( )
93
+
94
+  if( NOT LIBKCDDB_INCLUDE_DIR OR NOT LIBKCDDB_LIBRARY_DIR )
95
+    tde_message_fatal( "libkcddb is required, but was not found on your system" )
96
+  else( )
97
+    set( HAVE_KCDDB 1 )
98
+  endif( )
99
+endif( WITH_LIBKCDDB )
100
+
101
+if( WITH_LIBKCAL )
102
+  message( "-- checking for 'libkcal'" )
103
+
104
+  find_path(
105
+    LIBKCAL_INCLUDE_DIR
106
+      kcalversion.h
107
+    PATHS
108
+      ${TDE_INCLUDE_DIR}/libkcal
109
+      ${TDE_INCLUDE_DIR}
110
+      ${TQT_INCLUDE_DIRS}
111
+  )
112
+
113
+  find_library(
114
+    LIBKCAL_LIBRARY
115
+      kcal
116
+    PATHS
117
+      ${TDE_LIB_DIR}
118
+      ${TQT_LIBRARY_DIRS}
119
+  )
120
+  if( LIBKCAL_LIBRARY )
121
+    get_filename_component( LIBKCAL_LIBRARY_DIR ${LIBKCAL_LIBRARY} PATH CACHE )
122
+  endif( )
123
+
124
+  if( NOT LIBKCAL_INCLUDE_DIR OR NOT LIBKCAL_LIBRARY_DIR )
125
+    tde_message_fatal( "libkcal is required, but was not found on your system" )
126
+  else( )
127
+    set( HAVE_KCAL 1 )
128
+  endif( )
129
+endif( WITH_LIBKCAL )
130
+
131
+if( WITH_LIBBTPARSE )
132
+  check_library_exists( btparse bt_initialize "" HAVE_LIBBTPARSE )
133
+  if( NOT HAVE_LIBBTPARSE )
134
+    tde_message_fatal( "libbtparse is required, but was not found on your system" )
135
+  endif( NOT HAVE_LIBBTPARSE )
136
+  set( BTPARSE_LIBRARIES btparse )
137
+else( )
138
+  set( BTPARSE_LIBRARIES btparse-static )
139
+endif( WITH_LIBBTPARSE )
140
+
141
+if( WITH_SAX )
142
+  set( SAX_SUPPORT 1 CACHE INTERNAL "" )
143
+endif( WITH_SAX )
144
+
145
+
146
+if( BUILD_AMAZON_SUPPORT )
147
+  set( AMAZON_SUPPORT 1 CACHE INTERNAL "" )
148
+endif( BUILD_AMAZON_SUPPORT )
149
+
150
+if( BUILD_IMDB_SUPPORT )
151
+  set( IMDB_SUPPORT 1 CACHE INTERNAL "" )
152
+endif( BUILD_IMDB_SUPPORT )
153
+
154
+if( BUILD_CDTEXT_SUPPORT )
155
+  set( USE_CDTEXT 1 CACHE INTERNAL "" )
156
+endif( BUILD_CDTEXT_SUPPORT )
157
+
158
+if( BUILD_OOO_SUPPORT )
159
+  # FIXME - add configure checks for LibreOffice/OpenOffice.org
160
+  #set( WITH_OOO 1 CACHE INTERNAL "" )
161
+  tde_message_fatal( "CMake build with LibreOffice/OpenOffice.org support is not yet complete" )
162
+endif( BUILD_OOO_SUPPORT )
163
+
164
+if( BUILD_EXEMPI_SUPPORT )
165
+  pkg_search_module( EXEMPI exempi-2.0>=1.99.0 )
166
+  if( NOT EXEMPI_FOUND )
167
+    tde_message_fatal( "exempi at least 1.99.0 is required, but not found on your system" )
168
+  else( )
169
+    set( HAVE_EXEMPI 1 CACHE INTERNAL "" )
170
+  endif( )
171
+endif( BUILD_EXEMPI_SUPPORT )
172
+
173
+if( BUILD_POPPLER_SUPPORT )
174
+  pkg_search_module( POPPLER poppler-tqt>=0.5 )
175
+  if( NOT POPPLER_FOUND )
176
+    tde_message_fatal( "poppler-tqt at least 0.5 is required, but not found on your system" )
177
+  else( )
178
+    set( HAVE_POPPLER 1 CACHE INTERNAL "" )
179
+  endif( )
180
+endif( BUILD_POPPLER_SUPPORT )
181
+
182
+if( BUILD_WEBCAM_SUPPORT )
183
+  check_include_file( "libv4l1-videodev.h" HAVE_LIBV4L1_VIDEODEV_H )
184
+  if( HAVE_LIBV4L1_VIDEODEV_H )
185
+    set( ENABLE_WEBCAM 1 CACHE INTERNAL "" )
186
+    set( VIDEODEV_HEADER "libv4l1-videodev.h" CACHE INTERNAL "" )
187
+  else( )
188
+    check_include_file( "linux/videodev.h" HAVE_VIDEODEV_H )
189
+    if( HAVE_VIDEODEV_H )
190
+      set( ENABLE_WEBCAM 1 CACHE INTERNAL "" )
191
+      set( VIDEODEV_HEADER "linux/videodev.h" CACHE INTERNAL "" )
192
+    else( )
193
+      tde_message_fatal( "libv4l1-videodev.h or linux/videodev.h is required, but not found on your system" )
194
+    endif( )
195
+  endif( )
196
+  set( WEBCAM_LIBRARIES barcode-static )
197
+endif( BUILD_WEBCAM_SUPPORT )
198
+
199
+
200
+##### translations ##############################
201
+
202
+if( BUILD_TRANSLATIONS )
203
+  include( FindGettext )
204
+  if( GETTEXT_FOUND )
205
+    set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
206
+         CACHE FILEPATH "path to msgfmt executable" )
207
+  endif( GETTEXT_FOUND )
208
+
209
+  if( NOT MSGFMT_EXECUTABLE )
210
+    tde_message_fatal( "msgfmt is required but was not found on your system." )
211
+  endif( NOT MSGFMT_EXECUTABLE )
212
+endif( BUILD_TRANSLATIONS )

+ 32
- 0
config.h.cmake View File

@@ -0,0 +1,32 @@
1
+#cmakedefine VERSION "@VERSION@"
2
+
3
+// User specified build options
4
+
5
+#cmakedefine HAVE_TAGLIB 1
6
+#cmakedefine HAVE_YAZ 1
7
+#cmakedefine HAVE_KCDDB 1
8
+#cmakedefine HAVE_KCAL 1
9
+#cmakedefine SAX_SUPPORT 1
10
+
11
+#cmakedefine AMAZON_SUPPORT 1
12
+#cmakedefine IMDB_SUPPORT 1
13
+#cmakedefine USE_CDTEXT 1
14
+#cmakedefine HAVE_EXEMPI 1
15
+#cmakedefine HAVE_POPPLER 1
16
+#cmakedefine ENABLE_WEBCAM 1
17
+
18
+// System configuration
19
+
20
+#cmakedefine HAVE_USHORT 1
21
+#cmakedefine HAVE_BOOLEAN 1
22
+#cmakedefine HAVE_STRDUP_DECL 1
23
+
24
+#cmakedefine VIDEODEV_HEADER "@VIDEODEV_HEADER@"
25
+
26
+#define SIZEOF_INT @SIZEOF_INT@
27
+#define SIZEOF_LONG @SIZEOF_LONG@
28
+#define SIZEOF_SHORT @SIZEOF_SHORT@
29
+#define SIZEOF_UNSIGNED_CHAR @SIZEOF_UNSIGNED_CHAR@
30
+#define SIZEOF_UNSIGNED_INT @SIZEOF_UNSIGNED_INT@
31
+#define SIZEOF_UNSIGNED_LONG @SIZEOF_UNSIGNED_LONG@
32
+#define SIZEOF_UNSIGNED_SHORT @SIZEOF_UNSIGNED_SHORT@

+ 12
- 3
doc/CMakeLists.txt View File

@@ -1,4 +1,13 @@
1
-ADD_SUBDIRECTORY( en ) 
2
-ADD_SUBDIRECTORY( fr ) 
3
-
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
4 11
 
12
+add_subdirectory( en )
13
+add_subdirectory( fr )

+ 8
- 58
doc/en/CMakeLists.txt View File

@@ -1,62 +1,12 @@
1
-
2
-KDE_CREATE_HANDBOOK( index.docbook Xi
3
-  INSTALL_DESTINATION share/doc/tde/HTML/en/tellico
4
-  )
5
-
6
-########### install files ###############
7
-
8
-
9
-
10
-
11
-#original Makefile.am contents follow:
12
-
13
-######## tdevelop will overwrite this part!!! (begin)##########
14
-#
1
+#################################################
15 2
 #
16
-#EXTRA_DIST = \
17
-#advanced.docbook \
18
-#configuration.docbook \
19
-#details.docbook \
20
-#faqs.docbook \
21
-#fundamentals.docbook \
22
-#hacking.docbook \
23
-#importing-exporting.docbook \
24
-#index.docbook \
25
-#menus.docbook \
26
-#freebsd-doc-license.html \
27
-#entry-editor1.png \
28
-#entry-editor3.png \
29
-#entry-editor4.png \
30
-#entry-editor5.png \
31
-#fields-dialog.png \
32
-#general-options.png \
33
-#main-window.png \
34
-#print-options.png \
35
-#template-options.png \
36
-#source-options.png \
37
-#filter-dialog.png \
38
-#csv-dialog.png \
39
-#fetch-dialog.png \
40
-#export-options.png \
41
-#export-html.png \
42
-#export-csv.png \
43
-#export-pdb.png \
44
-#export-bibtex.png \
45
-#amazon-options.png \
46
-#z3950-options.png \
47
-#externalexec-options.png \
48
-#report-dialog.png \
49
-#loan-dialog.png \
50
-#loan-view.png \
51
-#filter-view.png \
52
-#openoffice-dialog.png \
53
-#sru-options.png \
54
-#imdb-options.png
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
55 5
 #
6
+#  Improvements and feedback are welcome
56 7
 #
57
-######## tdevelop will overwrite this part!!! (end)############
8
+#  This file is released under GPL >= 2
58 9
 #
59
-#KDE_LANG = en
60
-#KDE_DOCS = tellico
61
-#
62
-#CLEANFILES = *~
10
+#################################################
11
+
12
+tde_create_handbook( LANG en DESTINATION tellico )

+ 8
- 56
doc/fr/CMakeLists.txt View File

@@ -1,60 +1,12 @@
1
-INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
2
-
3
-
4
-########### install files ###############
5
-
6
-
7
-
8
-
9
-#original Makefile.am contents follow:
10
-
11
-######## tdevelop will overwrite this part!!! (begin)##########
12
-#
1
+#################################################
13 2
 #
14
-#EXTRA_DIST = \
15
-#advanced.docbook \
16
-#configuration.docbook \
17
-#details.docbook \
18
-#faqs.docbook \
19
-#fundamentals.docbook \
20
-#hacking.docbook \
21
-#importing-exporting.docbook \
22
-#index.docbook \
23
-#menus.docbook \
24
-#freebsd-doc-license.html \
25
-#entry-editor1.png \
26
-#entry-editor3.png \
27
-#entry-editor4.png \
28
-#entry-editor5.png \
29
-#fields-dialog.png \
30
-#general-options.png \
31
-#main-window.png \
32
-#print-options.png \
33
-#template-options.png \
34
-#source-options.png \
35
-#filter-dialog.png \
36
-#csv-dialog.png \
37
-#fetch-dialog.png \
38
-#export-options.png \
39
-#export-html.png \
40
-#export-csv.png \
41
-#export-pdb.png \
42
-#export-bibtex.png \
43
-#amazon-options.png \
44
-#z3950-options.png \
45
-#externalexec-options.png \
46
-#report-dialog.png \
47
-#loan-dialog.png \
48
-#loan-view.png \
49
-#filter-view.png \
50
-#openoffice-dialog.png \
51
-#sru-options.png \
52
-#imdb-options.png
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
53 5
 #
6
+#  Improvements and feedback are welcome
54 7
 #
55
-######## tdevelop will overwrite this part!!! (end)############
8
+#  This file is released under GPL >= 2
56 9
 #
57
-#KDE_LANG = fr
58
-#KDE_DOCS = tellico
59
-#
60
-#CLEANFILES = *~
10
+#################################################
11
+
12
+tde_create_handbook( LANG fr DESTINATION tellico )

+ 63
- 0
icons/CMakeLists.txt View File

@@ -0,0 +1,63 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+
13
+##### install application icon ##################
14
+tde_install_icons( )
15
+
16
+
17
+##### other data ################################
18
+install(
19
+  FILES
20
+    album.png
21
+    bibtex.png
22
+    tellico.png
23
+    tellico.svg
24
+    tellico_mime.svg
25
+    boardgame.png
26
+    book.png
27
+    card.png
28
+    coin.png
29
+    comic.png
30
+    game.png
31
+    person-open.png
32
+    person.png
33
+    stamp.png
34
+    star_on.png
35
+    star_off.png
36
+    stars1.png
37
+    stars2.png
38
+    stars3.png
39
+    stars4.png
40
+    stars5.png
41
+    stars6.png
42
+    stars7.png
43
+    stars8.png
44
+    stars9.png
45
+    stars10.png
46
+    video.png
47
+    wine.png
48
+    checkmark.png
49
+    README.icons
50
+    README.quesnay
51
+    file.png
52
+    nocover_album.png
53
+    nocover_boardgame.png
54
+    nocover_book.png
55
+    nocover_bibtex.png
56
+    nocover_comic.png
57
+    nocover_game.png
58
+    nocover_video.png
59
+    script.svg
60
+    script.png
61
+  DESTINATION
62
+    ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/pics
63
+)

+ 11
- 4
po/CMakeLists.txt View File

@@ -1,5 +1,12 @@
1
-file(GLOB _po_files *.po)
2
-
3
-#GETTEXT_CREATE_TRANSLATIONS(tellico.pot ALL ${_po_files} )
4
-
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
5 11
 
12
+tde_create_translation( LANG auto OUTPUT_NAME tellico )

+ 83
- 0
src/CMakeLists.txt View File

@@ -0,0 +1,83 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_BINARY_DIR}/core
16
+  ${CMAKE_CURRENT_SOURCE_DIR}
17
+  ${CMAKE_CURRENT_SOURCE_DIR}/core
18
+  ${LIBXML_INCLUDE_DIRS}
19
+  ${LIBXSLT_INCLUDE_DIRS}
20
+  ${EXEMPI_INCLUDE_DIRS}
21
+  ${TDE_INCLUDE_DIR}
22
+  ${TQT_INCLUDE_DIRS}
23
+)
24
+
25
+link_directories(
26
+  ${TQT_LIBRARY_DIRS}
27
+  ${POPPLER_LIBRARY_DIRS}
28
+)
29
+
30
+
31
+##### tellico (executable) ######################
32
+
33
+tde_add_executable( tellico AUTOMOC
34
+  SOURCES
35
+    borrower.cpp borrowerdialog.cpp
36
+    borroweritem.cpp calendarhandler.cpp collection.cpp collectionfactory.cpp
37
+    collectionfieldsdialog.cpp configdialog.cpp controller.cpp detailedentryitem.cpp
38
+    detailedlistview.cpp document.cpp entry.cpp entryeditdialog.cpp entrygroupitem.cpp
39
+    entryiconfactory.cpp entryiconview.cpp entryitem.cpp entrymerger.cpp entryupdater.cpp
40
+    entryview.cpp exportdialog.cpp fetchdialog.cpp fetcherconfigdialog.cpp field.cpp
41
+    fieldcompletion.cpp filehandler.cpp filter.cpp filterdialog.cpp filteritem.cpp
42
+    filterview.cpp groupiterator.cpp groupview.cpp image.cpp imagefactory.cpp
43
+    importdialog.cpp isbnvalidator.cpp iso5426converter.cpp iso6937converter.cpp
44
+    listviewcomparison.cpp loandialog.cpp loanitem.cpp loanview.cpp main.cpp mainwindow.cpp
45
+    progressmanager.cpp reportdialog.cpp statusbar.cpp tellico_kernel.cpp tellico_strings.cpp
46
+    tellico_utils.cpp upcvalidator.cpp viewstack.cpp xmphandler.cpp lccnvalidator.cpp
47
+  LINK
48
+    core-static gui-static cite-static fetch-static
49
+    collections-static newstuff-static translators-static
50
+    pilotdb-static pilotdb_flatfile-static pilotdb_palm-static
51
+    rtf2html-static commands-static ${BTPARSE_LIBRARIES} ${WEBCAM_LIBRARIES}
52
+    tdecore-shared tdefx-shared tdeui-shared tdeio-shared tdehtml-shared
53
+    tdetexteditor-shared tdeparts-shared tdenewstuff-shared tdeabc-shared
54
+    ${LIBKCAL_LIBRARY} ${LIBKCDDB_LIBRARY} ${LIBXML_LIBRARIES} ${LIBXSLT_LIBRARIES}
55
+    ${TAGLIB_LIBRARIES} ${YAZ_LIBRARIES} ${EXEMPI_LIBRARIES} ${POPPLER_LIBRARIES}
56
+  DESTINATION ${BIN_INSTALL_DIR}
57
+)
58
+
59
+
60
+##### other data ################################
61
+install(
62
+  FILES tellicoui.rc
63
+  DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}
64
+)
65
+install(
66
+  FILES tellicorc
67
+  DESTINATION ${CONFIG_INSTALL_DIR}
68
+)
69
+
70
+
71
+##### directories ###############################
72
+
73
+add_subdirectory( core )
74
+add_subdirectory( gui )
75
+add_subdirectory( collections )
76
+add_subdirectory( translators )
77
+add_subdirectory( fetch )
78
+add_subdirectory( commands )
79
+add_subdirectory( cite )
80
+add_subdirectory( newstuff )
81
+add_subdirectory( rtf2html )
82
+tde_conditional_add_subdirectory( BUILD_WEBCAM_SUPPORT barcode )
83
+add_subdirectory( tests )

+ 29
- 0
src/barcode/CMakeLists.txt View File

@@ -0,0 +1,29 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### barcode (static) ##########################
26
+
27
+tde_add_library( barcode STATIC_PIC AUTOMOC
28
+  SOURCES barcode.cpp barcode_v4l.cpp
29
+)

+ 33
- 0
src/cite/CMakeLists.txt View File

@@ -0,0 +1,33 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### cite (static) #############################
26
+
27
+tde_add_library( cite STATIC_PIC AUTOMOC
28
+  SOURCES lyxpipe.cpp actionmanager.cpp clipboard.cpp openoffice.cpp
29
+)
30
+
31
+##### directories ###############################
32
+
33
+tde_conditional_add_subdirectory( BUILD_OOO_SUPPORT ooo )

+ 34
- 0
src/collections/CMakeLists.txt View File

@@ -0,0 +1,34 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### collections (static) ######################
26
+
27
+tde_add_library( collections STATIC_PIC AUTOMOC
28
+  SOURCES
29
+    winecollection.cpp stampcollection.cpp
30
+    comicbookcollection.cpp cardcollection.cpp coincollection.cpp
31
+    bibtexcollection.cpp musiccollection.cpp videocollection.cpp
32
+    bookcollection.cpp gamecollection.cpp filecatalog.cpp
33
+    boardgamecollection.cpp
34
+)

+ 34
- 0
src/commands/CMakeLists.txt View File

@@ -0,0 +1,34 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### commands (static) #########################
26
+
27
+tde_add_library( commands STATIC_PIC AUTOMOC
28
+  SOURCES
29
+    addentries.cpp modifyentries.cpp removeentries.cpp
30
+    addloans.cpp modifyloans.cpp removeloans.cpp
31
+    fieldcommand.cpp filtercommand.cpp reorderfields.cpp
32
+    group.cpp collectioncommand.cpp renamecollection.cpp
33
+    updateentries.cpp
34
+)

+ 56
- 0
src/core/CMakeLists.txt View File

@@ -0,0 +1,56 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### core (static) #############################
26
+
27
+set( target core )
28
+
29
+set( ${target}_SRCS
30
+  dcopinterface.cpp dcopinterface.skel drophandler.cpp
31
+  netaccess.cpp tellico_config.kcfgc tellico_config_addons.cpp
32
+)
33
+
34
+tde_save( KDE3_DCOPIDL_EXECUTABLE )
35
+set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} )
36
+kde3_add_dcop_skels( ${target}_SRCS )
37
+tde_restore( KDE3_DCOPIDL_EXECUTABLE )
38
+
39
+tde_add_library( ${target} STATIC_PIC AUTOMOC
40
+  SOURCES ${${target}_SRCS}
41
+)
42
+
43
+
44
+##### other data ################################
45
+install(
46
+  FILES tellico_config.kcfg
47
+  DESTINATION ${KCFG_INSTALL_DIR}
48
+)
49
+install(
50
+  FILES tellico-rename.upd tellico.upd
51
+  DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update
52
+)
53
+install(
54
+  PROGRAMS tellico-1-3-update.pl
55
+  DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update
56
+)

+ 52
- 0
src/fetch/CMakeLists.txt View File

@@ -0,0 +1,52 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${LIBXML_INCLUDE_DIRS}
17
+  ${LIBXSLT_INCLUDE_DIRS}
18
+  ${YAZ_INCLUDE_DIRS}
19
+  ${TDE_INCLUDE_DIR}
20
+  ${TQT_INCLUDE_DIRS}
21
+)
22
+
23
+link_directories(
24
+  ${TQT_LIBRARY_DIRS}
25
+)
26
+
27
+
28
+##### fetch (static) ############################
29
+
30
+tde_add_library( fetch STATIC_PIC AUTOMOC
31
+  SOURCES
32
+    amazonfetcher.cpp animenfofetcher.cpp arxivfetcher.cpp
33
+    bibsonomyfetcher.cpp citebasefetcher.cpp configwidget.cpp crossreffetcher.cpp
34
+    discogsfetcher.cpp entrezfetcher.cpp execexternalfetcher.cpp fetcher.cpp fetchmanager.cpp
35
+    gcstarpluginfetcher.cpp googlescholarfetcher.cpp ibsfetcher.cpp imdbfetcher.cpp
36
+    isbndbfetcher.cpp messagehandler.cpp srufetcher.cpp yahoofetcher.cpp z3950connection.cpp
37
+    z3950fetcher.cpp amazonrequest.cpp hmac_sha2.c sha2.c
38
+  LINK
39
+    gui-static
40
+)
41
+
42
+
43
+##### other data ################################
44
+install(
45
+  FILES z3950-servers.cfg
46
+  DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}
47
+)
48
+
49
+
50
+##### directories ###############################
51
+
52
+add_subdirectory( scripts )

+ 29
- 0
src/fetch/scripts/CMakeLists.txt View File

@@ -0,0 +1,29 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+
13
+##### other data ################################
14
+install(
15
+  FILES
16
+    fr.allocine.py.spec
17
+    ministerio_de_cultura.py.spec
18
+    dark_horse_comics.py.spec
19
+    boardgamegeek.rb.spec
20
+  DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/data-sources
21
+)
22
+install(
23
+  PROGRAMS
24
+    fr.allocine.py
25
+    ministerio_de_cultura.py
26
+    dark_horse_comics.py
27
+    boardgamegeek.rb
28
+  DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/data-sources
29
+)

+ 36
- 0
src/gui/CMakeLists.txt View File

@@ -0,0 +1,36 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### gui (static) ##############################
26
+
27
+tde_add_library( gui STATIC_PIC AUTOMOC
28
+  SOURCES
29
+    combobox.cpp counteditem.cpp datewidget.cpp
30
+    tabcontrol.cpp kwidgetlister.cpp stringmapdialog.cpp listview.cpp richtextlabel.cpp
31
+    lineedit.cpp boolfieldwidget.cpp choicefieldwidget.cpp linefieldwidget.cpp
32
+    numberfieldwidget.cpp parafieldwidget.cpp urlfieldwidget.cpp tablefieldwidget.cpp
33
+    imagefieldwidget.cpp datefieldwidget.cpp imagewidget.cpp fieldwidget.cpp ratingwidget.cpp
34
+    ratingfieldwidget.cpp overlaywidget.cpp progress.cpp listboxtext.cpp collectiontypecombo.cpp
35
+    previewdialog.cpp
36
+)

+ 29
- 0
src/newstuff/CMakeLists.txt View File

@@ -0,0 +1,29 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### newstuff (static) #########################
26
+
27
+tde_add_library( newstuff STATIC_PIC AUTOMOC
28
+  SOURCES manager.cpp dialog.cpp newscript.cpp
29
+)

+ 29
- 0
src/rtf2html/CMakeLists.txt View File

@@ -0,0 +1,29 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### rtf2html (static) #########################
26
+
27
+tde_add_library( rtf2html STATIC_PIC AUTOMOC
28
+  SOURCES fmt_opts.cpp rtf2html.cpp rtf_keyword.cpp rtf_table.cpp
29
+)

+ 57
- 0
src/tests/CMakeLists.txt View File

@@ -0,0 +1,57 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### define tests ##############################
26
+
27
+add_test( isbtest isbntest )
28
+
29
+add_test( latin1test latin1test )
30
+
31
+add_test( entitytest entitytest )
32
+
33
+
34
+##### test programs #############################
35
+
36
+tde_add_executable( isbntest AUTOMOC
37
+  SOURCES
38
+    isbntest.cpp
39
+    ../isbnvalidator.cpp ../upcvalidator.cpp
40
+  LINK
41
+    tdecore-shared tdeui-shared
42
+)
43
+
44
+tde_add_executable( latin1test AUTOMOC
45
+  SOURCES
46
+    latin1test.cpp
47
+  LINK
48
+    tdecore-shared
49
+)
50
+
51
+tde_add_executable( entitytest AUTOMOC
52
+  SOURCES
53
+    entitytest.cpp
54
+    ../tellico_utils.cpp
55
+  LINK
56
+    tdecore-shared
57
+)

+ 62
- 0
src/translators/CMakeLists.txt View File

@@ -0,0 +1,62 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}/tde
17
+  ${TDE_INCLUDE_DIR}
18
+  ${TQT_INCLUDE_DIRS}
19
+)
20
+
21
+link_directories(
22
+  ${TQT_LIBRARY_DIRS}
23
+)
24
+
25
+
26
+##### translators (static) ######################
27
+
28
+tde_add_library( translators STATIC_PIC AUTOMOC
29
+  SOURCES
30
+    alexandriaexporter.cpp alexandriaimporter.cpp
31
+    amcimporter.cpp audiofileimporter.cpp bibtexexporter.cpp bibtexhandler.cpp
32
+    bibteximporter.cpp bibtexmlexporter.cpp bibtexmlimporter.cpp csvexporter.cpp
33
+    csvimporter.cpp dcimporter.cpp deliciousimporter.cpp exporter.cpp
34
+    filelistingimporter.cpp freedb_util.cpp freedbimporter.cpp gcfilmsexporter.cpp
35
+    gcfilmsimporter.cpp griffithimporter.cpp grs1importer.cpp htmlexporter.cpp libcsv.c
36
+    onixexporter.cpp pdfimporter.cpp pilotdbexporter.cpp referencerimporter.cpp
37
+    risimporter.cpp tellico_xml.cpp tellicoimporter.cpp tellicosaximporter.cpp
38
+    tellicoxmlexporter.cpp tellicoxmlhandler.cpp tellicozipexporter.cpp textimporter.cpp
39
+    xmlimporter.cpp xmlstatehandler.cpp xsltexporter.cpp xslthandler.cpp xsltimporter.cpp
40
+    dataimporter.cpp importer.cpp
41
+  LINK
42
+    gui-static
43
+)
44
+
45
+
46
+##### other data ################################
47
+install(
48
+  FILES bibtex-translation.xml
49
+  DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}
50
+)
51
+install(
52
+  PROGRAMS griffith2tellico.py
53
+  DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}
54
+)
55
+
56
+
57
+##### directories ###############################
58
+
59
+if( NOT WITH_LIBBTPARSE )
60
+  add_subdirectory( btparse )
61
+endif( )
62
+add_subdirectory( pilotdb )

+ 2
- 1
src/translators/Makefile.am View File

@@ -14,7 +14,8 @@ libtranslators_a_SOURCES = alexandriaexporter.cpp alexandriaimporter.cpp \
14 14
 	onixexporter.cpp pdfimporter.cpp pilotdbexporter.cpp referencerimporter.cpp \
15 15
 	risimporter.cpp tellico_xml.cpp tellicoimporter.cpp tellicosaximporter.cpp \
16 16
 	tellicoxmlexporter.cpp tellicoxmlhandler.cpp tellicozipexporter.cpp textimporter.cpp \
17
-	xmlimporter.cpp xmlstatehandler.cpp xsltexporter.cpp xslthandler.cpp xsltimporter.cpp
17
+	xmlimporter.cpp xmlstatehandler.cpp xsltexporter.cpp xslthandler.cpp xsltimporter.cpp \
18
+	dataimporter.cpp importer.cpp
18 19
 
19 20
 if !USE_LIBBTPARSE
20 21
   SUBDIR_LIBBTPARSE = btparse

+ 29
- 0
src/translators/btparse/CMakeLists.txt View File

@@ -0,0 +1,29 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### btparse (static) ##########################
26
+
27
+tde_add_library( btparse STATIC_PIC AUTOMOC
28
+  SOURCES bibtex_ast.c bibtex.c err.c ast.c scan.c util.c lex_auxiliary.c parse_auxiliary.c format_name.c string_util.c tex_tree.c names.c modify.c traversal.c sym.c macros.c error.c postprocess.c input.c init.c
29
+)

+ 1
- 0
src/translators/dataimporter.cpp View File

@@ -0,0 +1 @@
1
+#include "dataimporter.moc"

+ 1
- 0
src/translators/importer.cpp View File

@@ -0,0 +1 @@
1
+#include "importer.moc"

+ 35
- 0
src/translators/pilotdb/CMakeLists.txt View File

@@ -0,0 +1,35 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### pilotdb (static) ##########################
26
+
27
+tde_add_library( pilotdb STATIC_PIC AUTOMOC
28
+  SOURCES pilotdb.cpp strop.cpp
29
+)
30
+
31
+
32
+##### directories ###############################
33
+
34
+add_subdirectory( libflatfile )
35
+add_subdirectory( libpalm )

+ 29
- 0
src/translators/pilotdb/libflatfile/CMakeLists.txt View File

@@ -0,0 +1,29 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### pilotdb_flatfile (static) #################
26
+
27
+tde_add_library( pilotdb_flatfile STATIC_PIC AUTOMOC
28
+  SOURCES DB.cpp Database.cpp
29
+)

+ 29
- 0
src/translators/pilotdb/libpalm/CMakeLists.txt View File

@@ -0,0 +1,29 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${CMAKE_CURRENT_BINARY_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}
16
+  ${TDE_INCLUDE_DIR}
17
+  ${TQT_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${TQT_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### pilotdb_palm (static) #####################
26
+
27
+tde_add_library( pilotdb_palm STATIC_PIC AUTOMOC
28
+  SOURCES Database.cpp Block.cpp
29
+)

+ 57
- 0
xslt/CMakeLists.txt View File

@@ -0,0 +1,57 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+
13
+##### other data ################################
14
+install(
15
+  FILES
16
+    tellico-printing.xsl
17
+    tellico-by-author.xsl
18
+    tellico-by-title.xsl
19
+    tellico2html.xsl
20
+    shadowAlpha.png
21
+    cassette-logo.png
22
+    cd-logo.png
23
+    dvd-logo.png
24
+    record-logo.png
25
+    vhs-logo.png
26
+    tellico-common.xsl
27
+    mods2tellico.xsl
28
+    amazon2tellico.xsl
29
+    MARC21slim2MODS3.xsl
30
+    MARC21slimUtils.xsl
31
+    pubmed2tellico.xsl
32
+    tellico2onix.xsl
33
+    UNIMARC2MODS3.xsl
34
+    tellico2html.js
35
+    yahoo2tellico.xsl
36
+    isbndb2tellico.xsl
37
+    bluray-logo.png
38
+    hddvd-logo.png
39
+    gcstar2tellico.xsl
40
+    xmp2tellico.xsl
41
+    crossref2tellico.xsl
42
+    arxiv2tellico.xsl
43
+    referencer2tellico.xsl
44
+    delicious2tellico.xsl
45
+    welcome.html
46
+    unixref2tellico.xsl
47
+    discogs2tellico.xsl
48
+    tellico2gcstar.xsl
49
+  DESTINATION
50
+    ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}
51
+)
52
+
53
+
54
+##### directories ###############################
55
+
56
+add_subdirectory( entry-templates )
57
+add_subdirectory( report-templates )

+ 19
- 0
xslt/entry-templates/CMakeLists.txt View File

@@ -0,0 +1,19 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+
13
+##### other data ################################
14
+install(
15
+  FILES
16
+    Default.xsl Video.xsl Album.xsl Fancy.xsl Compact.xsl
17
+  DESTINATION
18
+    ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/entry-templates
19
+)

+ 26
- 0
xslt/report-templates/CMakeLists.txt View File

@@ -0,0 +1,26 @@
1
+#################################################
2
+#
3
+#  (C) 2016 Slávek Banko
4
+#  slavek (DOT) banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+
13
+##### other data ################################
14
+install(
15
+  FILES
16
+    Column_View.xsl
17
+    "Title_Listing_(Horizontal).xsl"
18
+    "Title_Listing_(Vertical).xsl"
19
+    Group_View.xsl
20
+    Image_List.xsl
21
+    Loan_View.xsl
22
+    Group_Summary.xsl
23
+    Tri-Column.xsl
24
+  DESTINATION
25
+    ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/report-templates
26
+)

Loading…
Cancel
Save