summaryrefslogtreecommitdiffstats
path: root/src/translators
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-09-18 20:59:45 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-09-18 20:59:45 +0200
commit3f7006b6807add37a3de957c525600a31424a498 (patch)
treec0a1c00a80c3ec28c7f38da2e5e91ff6e3a385be /src/translators
parent3fbf943ee75e74a85c489508303987cfd5f8ea01 (diff)
downloadtellico-3f7006b6807add37a3de957c525600a31424a498.tar.gz
tellico-3f7006b6807add37a3de957c525600a31424a498.zip
Initial cmake conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/translators')
-rw-r--r--src/translators/CMakeLists.txt62
-rw-r--r--src/translators/Makefile.am3
-rw-r--r--src/translators/btparse/CMakeLists.txt29
-rw-r--r--src/translators/dataimporter.cpp1
-rw-r--r--src/translators/importer.cpp1
-rw-r--r--src/translators/pilotdb/CMakeLists.txt35
-rw-r--r--src/translators/pilotdb/libflatfile/CMakeLists.txt29
-rw-r--r--src/translators/pilotdb/libpalm/CMakeLists.txt29
8 files changed, 188 insertions, 1 deletions
diff --git a/src/translators/CMakeLists.txt b/src/translators/CMakeLists.txt
new file mode 100644
index 0000000..459e781
--- /dev/null
+++ b/src/translators/CMakeLists.txt
@@ -0,0 +1,62 @@
+#################################################
+#
+# (C) 2016 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}/tde
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### translators (static) ######################
+
+tde_add_library( translators STATIC_PIC AUTOMOC
+ SOURCES
+ alexandriaexporter.cpp alexandriaimporter.cpp
+ amcimporter.cpp audiofileimporter.cpp bibtexexporter.cpp bibtexhandler.cpp
+ bibteximporter.cpp bibtexmlexporter.cpp bibtexmlimporter.cpp csvexporter.cpp
+ csvimporter.cpp dcimporter.cpp deliciousimporter.cpp exporter.cpp
+ filelistingimporter.cpp freedb_util.cpp freedbimporter.cpp gcfilmsexporter.cpp
+ gcfilmsimporter.cpp griffithimporter.cpp grs1importer.cpp htmlexporter.cpp libcsv.c
+ onixexporter.cpp pdfimporter.cpp pilotdbexporter.cpp referencerimporter.cpp
+ risimporter.cpp tellico_xml.cpp tellicoimporter.cpp tellicosaximporter.cpp
+ tellicoxmlexporter.cpp tellicoxmlhandler.cpp tellicozipexporter.cpp textimporter.cpp
+ xmlimporter.cpp xmlstatehandler.cpp xsltexporter.cpp xslthandler.cpp xsltimporter.cpp
+ dataimporter.cpp importer.cpp
+ LINK
+ gui-static
+)
+
+
+##### other data ################################
+install(
+ FILES bibtex-translation.xml
+ DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}
+)
+install(
+ PROGRAMS griffith2tellico.py
+ DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}
+)
+
+
+##### directories ###############################
+
+if( NOT WITH_LIBBTPARSE )
+ add_subdirectory( btparse )
+endif( )
+add_subdirectory( pilotdb )
diff --git a/src/translators/Makefile.am b/src/translators/Makefile.am
index f0e8520..e91e182 100644
--- a/src/translators/Makefile.am
+++ b/src/translators/Makefile.am
@@ -14,7 +14,8 @@ libtranslators_a_SOURCES = alexandriaexporter.cpp alexandriaimporter.cpp \
onixexporter.cpp pdfimporter.cpp pilotdbexporter.cpp referencerimporter.cpp \
risimporter.cpp tellico_xml.cpp tellicoimporter.cpp tellicosaximporter.cpp \
tellicoxmlexporter.cpp tellicoxmlhandler.cpp tellicozipexporter.cpp textimporter.cpp \
- xmlimporter.cpp xmlstatehandler.cpp xsltexporter.cpp xslthandler.cpp xsltimporter.cpp
+ xmlimporter.cpp xmlstatehandler.cpp xsltexporter.cpp xslthandler.cpp xsltimporter.cpp \
+ dataimporter.cpp importer.cpp
if !USE_LIBBTPARSE
SUBDIR_LIBBTPARSE = btparse
diff --git a/src/translators/btparse/CMakeLists.txt b/src/translators/btparse/CMakeLists.txt
new file mode 100644
index 0000000..6490c0b
--- /dev/null
+++ b/src/translators/btparse/CMakeLists.txt
@@ -0,0 +1,29 @@
+#################################################
+#
+# (C) 2016 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### btparse (static) ##########################
+
+tde_add_library( btparse STATIC_PIC AUTOMOC
+ 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
+)
diff --git a/src/translators/dataimporter.cpp b/src/translators/dataimporter.cpp
new file mode 100644
index 0000000..1e3e36e
--- /dev/null
+++ b/src/translators/dataimporter.cpp
@@ -0,0 +1 @@
+#include "dataimporter.moc"
diff --git a/src/translators/importer.cpp b/src/translators/importer.cpp
new file mode 100644
index 0000000..553df2f
--- /dev/null
+++ b/src/translators/importer.cpp
@@ -0,0 +1 @@
+#include "importer.moc"
diff --git a/src/translators/pilotdb/CMakeLists.txt b/src/translators/pilotdb/CMakeLists.txt
new file mode 100644
index 0000000..1be9904
--- /dev/null
+++ b/src/translators/pilotdb/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2016 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### pilotdb (static) ##########################
+
+tde_add_library( pilotdb STATIC_PIC AUTOMOC
+ SOURCES pilotdb.cpp strop.cpp
+)
+
+
+##### directories ###############################
+
+add_subdirectory( libflatfile )
+add_subdirectory( libpalm )
diff --git a/src/translators/pilotdb/libflatfile/CMakeLists.txt b/src/translators/pilotdb/libflatfile/CMakeLists.txt
new file mode 100644
index 0000000..78c6c29
--- /dev/null
+++ b/src/translators/pilotdb/libflatfile/CMakeLists.txt
@@ -0,0 +1,29 @@
+#################################################
+#
+# (C) 2016 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### pilotdb_flatfile (static) #################
+
+tde_add_library( pilotdb_flatfile STATIC_PIC AUTOMOC
+ SOURCES DB.cpp Database.cpp
+)
diff --git a/src/translators/pilotdb/libpalm/CMakeLists.txt b/src/translators/pilotdb/libpalm/CMakeLists.txt
new file mode 100644
index 0000000..af5d274
--- /dev/null
+++ b/src/translators/pilotdb/libpalm/CMakeLists.txt
@@ -0,0 +1,29 @@
+#################################################
+#
+# (C) 2016 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### pilotdb_palm (static) #####################
+
+tde_add_library( pilotdb_palm STATIC_PIC AUTOMOC
+ SOURCES Database.cpp Block.cpp
+)