diff options
author | Slávek Banko <[email protected]> | 2016-09-18 20:59:45 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-09-18 21:00:00 +0200 |
commit | 1404d26a1e72b9e29f460fe828d42af57d925a99 (patch) | |
tree | d67a20b74852662a123da6c6d537d6c84820bad6 | |
parent | e92dc6bf694aea0048ea774c3226a135cd61b6ff (diff) | |
download | tellico-1404d26a1e72b9e29f460fe828d42af57d925a99.tar.gz tellico-1404d26a1e72b9e29f460fe828d42af57d925a99.zip |
Initial cmake conversion
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 3f7006b6807add37a3de957c525600a31424a498)
31 files changed, 1260 insertions, 122 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..226b666 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,123 @@ +################################################# +# +# (C) 2016 Slávek Banko +# slavek.banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +cmake_minimum_required( VERSION 2.8 ) + + +##### general package setup ##################### + +project( tellico ) +set( VERSION 1.3.6 ) + + +##### include essential cmake modules ########### + +include( FindPkgConfig ) +include( CheckIncludeFile ) +include( CheckLibraryExists ) +include( CheckSymbolExists ) +include( CheckTypeSize ) +# EXAMPLE: +# include( CheckCSourceCompiles ) +# include( CheckCXXSourceCompiles ) + +enable_testing() + + +##### include our cmake modules ################# + +set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ) +include( TDEMacros ) + + +##### setup install paths ####################### + +include( TDESetupPaths ) +tde_setup_paths( ) + + +##### optional stuff ############################ + +option( WITH_ALL_OPTIONS "Enable all sane supported options" OFF ) + +option( WITH_LIBKCDDB "Enable FreeDB integration" ${WITH_ALL_OPTIONS} ) +option( WITH_LIBKCAL "Enable KOrganizer integration" ${WITH_ALL_OPTIONS} ) +option( WITH_LIBBTPARSE "Use btparse shared library" ${WITH_ALL_OPTIONS} ) +option( WITH_SAX_LOADER "Use SAX document loading (experimental)" ${WITH_ALL_OPTIONS} ) + + +##### options comments ########################## + +# WITH_LIBKCDDB enable searching via freedb +# WITH_LIBKCAL enable integration with KOrganizer +# WITH_LIBBTPARSE if enabled use system library btparse instead of build-in +# WITH_SAX_LOADER if enabled documents will be openned using SAX loader + + +##### user requested modules #################### + +option( BUILD_DOC "Build documentation" ON ) +option( BUILD_TRANSLATIONS "Build translations" ON ) +option( BUILD_XMLCATALOG "" OFF ) + +option( BUILD_AMAZON_SUPPORT "Build Amazon.com searching support" ON ) +option( BUILD_IMDB_SUPPORT "Build IMDb searching support" ON ) +option( BUILD_CDTEXT_SUPPORT "Build CD-Text support (Linux only)" ON ) +option( BUILD_OOO_SUPPORT "Build LibreOffice/OpenOffice.org support" OFF ) +option( BUILD_EXEMPI_SUPPORT "Build exempi support" ON ) +option( BUILD_POPPLER_SUPPORT "Build poppler support" ON ) +option( BUILD_WEBCAM_SUPPORT "Build support for scanning barcodes (experimental)" ON ) + + +##### configure checks ########################## + +include( ConfigureChecks.cmake ) + + +###### global compiler settings ################# + +add_definitions( + -DHAVE_CONFIG_H +) + +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) +set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" ) +set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" ) + + +##### tellico directories ####################### + +add_subdirectory( src ) +add_subdirectory( icons ) +add_subdirectory( xslt ) +tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) +tde_conditional_add_subdirectory( BUILD_DOC doc ) + + +##### other data ################################ + +install( FILES tellico.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) +install( FILES tellico.xml + DESTINATION ${XDG_MIME_INSTALL_DIR} +) +install( FILES x-tellico.desktop + DESTINATION ${MIME_INSTALL_DIR}/application +) +install( FILES tellico.dtd tellico.tips + DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME} +) + + +##### write configure files ##################### + +configure_file( config.h.cmake config.h @ONLY ) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake new file mode 100644 index 0000000..aabc1a9 --- /dev/null +++ b/ConfigureChecks.cmake @@ -0,0 +1,212 @@ +################################################# +# +# (C) 2016 Slávek Banko +# slavek.banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### check for gcc visibility support ######### +# FIXME +# This should check for [T]Qt3 visibility support + +if( WITH_GCC_VISIBILITY ) + if( NOT UNIX ) + tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" ) + endif( NOT UNIX ) + set( __KDE_HAVE_GCC_VISIBILITY 1 ) + set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden") + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden") +endif( WITH_GCC_VISIBILITY ) + + +##### set architecture flags #################### +tde_setup_architecture_flags( ) + + +##### required stuff ############################ + +find_package( TQt ) +find_package( TDE ) +set( ENV{PKG_CONFIG_PATH} "${PKG_CONFIG_PATH}:$ENV{PKG_CONFIG_PATH}:${LIB_INSTALL_DIR}/pkgconfig" ) + + +##### check system configuration ################ + +check_symbol_exists( strdup "string.h" HAVE_STRDUP_DECL ) +check_type_size( ushort USHORT ) +check_type_size( boolean BOOLEAN ) + +check_type_size( "int" SIZEOF_INT ) +check_type_size( "long" SIZEOF_LONG ) +check_type_size( "short" SIZEOF_SHORT ) +check_type_size( "unsigned char" SIZEOF_UNSIGNED_CHAR ) +check_type_size( "unsigned int" SIZEOF_UNSIGNED_INT ) +check_type_size( "unsigned long" SIZEOF_UNSIGNED_LONG ) +check_type_size( "unsigned short" SIZEOF_UNSIGNED_SHORT ) + +pkg_search_module( LIBXML libxml-2.0>=2.6.0 ) +if( NOT LIBXML_FOUND ) + tde_message_fatal( "libxml at least 2.6.0 is required, but not found on your system" ) +endif( NOT LIBXML_FOUND ) + +pkg_search_module( LIBXSLT libxslt>=1.0.19 ) +if( NOT LIBXSLT_FOUND ) + tde_message_fatal( "libxslt at least 1.0.19 is required, but not found on your system" ) +endif( NOT LIBXSLT_FOUND ) + +pkg_search_module( TAGLIB taglib ) +if( TAGLIB_FOUND ) + set( HAVE_TAGLIB 1 ) +endif( TAGLIB_FOUND ) + +pkg_search_module( YAZ yaz ) +if( YAZ_FOUND ) + set( HAVE_YAZ 1 ) +endif( YAZ_FOUND ) + +if( WITH_LIBKCDDB ) + message( "-- checking for 'libkcddb'" ) + + find_path( + LIBKCDDB_INCLUDE_DIR + cddb.h + PATHS + ${TDE_INCLUDE_DIR}/tde/libkcddb + ${TDE_INCLUDE_DIR}/libkcddb + NO_DEFAULT_PATH + ) + + find_library( + LIBKCDDB_LIBRARY + kcddb + PATHS + ${TDE_LIB_DIR} + ${TQT_LIBRARY_DIRS} + ) + if( LIBKCDDB_LIBRARY ) + get_filename_component( LIBKCDDB_LIBRARY_DIR ${LIBKCDDB_LIBRARY} PATH CACHE ) + endif( ) + + if( NOT LIBKCDDB_INCLUDE_DIR OR NOT LIBKCDDB_LIBRARY_DIR ) + tde_message_fatal( "libkcddb is required, but was not found on your system" ) + else( ) + set( HAVE_KCDDB 1 ) + endif( ) +endif( WITH_LIBKCDDB ) + +if( WITH_LIBKCAL ) + message( "-- checking for 'libkcal'" ) + + find_path( + LIBKCAL_INCLUDE_DIR + kcalversion.h + PATHS + ${TDE_INCLUDE_DIR}/libkcal + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ) + + find_library( + LIBKCAL_LIBRARY + kcal + PATHS + ${TDE_LIB_DIR} + ${TQT_LIBRARY_DIRS} + ) + if( LIBKCAL_LIBRARY ) + get_filename_component( LIBKCAL_LIBRARY_DIR ${LIBKCAL_LIBRARY} PATH CACHE ) + endif( ) + + if( NOT LIBKCAL_INCLUDE_DIR OR NOT LIBKCAL_LIBRARY_DIR ) + tde_message_fatal( "libkcal is required, but was not found on your system" ) + else( ) + set( HAVE_KCAL 1 ) + endif( ) +endif( WITH_LIBKCAL ) + +if( WITH_LIBBTPARSE ) + check_library_exists( btparse bt_initialize "" HAVE_LIBBTPARSE ) + if( NOT HAVE_LIBBTPARSE ) + tde_message_fatal( "libbtparse is required, but was not found on your system" ) + endif( NOT HAVE_LIBBTPARSE ) + set( BTPARSE_LIBRARIES btparse ) +else( ) + set( BTPARSE_LIBRARIES btparse-static ) +endif( WITH_LIBBTPARSE ) + +if( WITH_SAX ) + set( SAX_SUPPORT 1 CACHE INTERNAL "" ) +endif( WITH_SAX ) + + +if( BUILD_AMAZON_SUPPORT ) + set( AMAZON_SUPPORT 1 CACHE INTERNAL "" ) +endif( BUILD_AMAZON_SUPPORT ) + +if( BUILD_IMDB_SUPPORT ) + set( IMDB_SUPPORT 1 CACHE INTERNAL "" ) +endif( BUILD_IMDB_SUPPORT ) + +if( BUILD_CDTEXT_SUPPORT ) + set( USE_CDTEXT 1 CACHE INTERNAL "" ) +endif( BUILD_CDTEXT_SUPPORT ) + +if( BUILD_OOO_SUPPORT ) + # FIXME - add configure checks for LibreOffice/OpenOffice.org + #set( WITH_OOO 1 CACHE INTERNAL "" ) + tde_message_fatal( "CMake build with LibreOffice/OpenOffice.org support is not yet complete" ) +endif( BUILD_OOO_SUPPORT ) + +if( BUILD_EXEMPI_SUPPORT ) + pkg_search_module( EXEMPI exempi-2.0>=1.99.0 ) + if( NOT EXEMPI_FOUND ) + tde_message_fatal( "exempi at least 1.99.0 is required, but not found on your system" ) + else( ) + set( HAVE_EXEMPI 1 CACHE INTERNAL "" ) + endif( ) +endif( BUILD_EXEMPI_SUPPORT ) + +if( BUILD_POPPLER_SUPPORT ) + pkg_search_module( POPPLER poppler-tqt>=0.5 ) + if( NOT POPPLER_FOUND ) + tde_message_fatal( "poppler-tqt at least 0.5 is required, but not found on your system" ) + else( ) + set( HAVE_POPPLER 1 CACHE INTERNAL "" ) + endif( ) +endif( BUILD_POPPLER_SUPPORT ) + +if( BUILD_WEBCAM_SUPPORT ) + check_include_file( "libv4l1-videodev.h" HAVE_LIBV4L1_VIDEODEV_H ) + if( HAVE_LIBV4L1_VIDEODEV_H ) + set( ENABLE_WEBCAM 1 CACHE INTERNAL "" ) + set( VIDEODEV_HEADER "libv4l1-videodev.h" CACHE INTERNAL "" ) + else( ) + check_include_file( "linux/videodev.h" HAVE_VIDEODEV_H ) + if( HAVE_VIDEODEV_H ) + set( ENABLE_WEBCAM 1 CACHE INTERNAL "" ) + set( VIDEODEV_HEADER "linux/videodev.h" CACHE INTERNAL "" ) + else( ) + tde_message_fatal( "libv4l1-videodev.h or linux/videodev.h is required, but not found on your system" ) + endif( ) + endif( ) + set( WEBCAM_LIBRARIES barcode-static ) +endif( BUILD_WEBCAM_SUPPORT ) + + +##### translations ############################## + +if( BUILD_TRANSLATIONS ) + include( FindGettext ) + if( GETTEXT_FOUND ) + set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE} + CACHE FILEPATH "path to msgfmt executable" ) + endif( GETTEXT_FOUND ) + + if( NOT MSGFMT_EXECUTABLE ) + tde_message_fatal( "msgfmt is required but was not found on your system." ) + endif( NOT MSGFMT_EXECUTABLE ) +endif( BUILD_TRANSLATIONS ) diff --git a/config.h.cmake b/config.h.cmake new file mode 100644 index 0000000..dad62ef --- /dev/null +++ b/config.h.cmake @@ -0,0 +1,32 @@ +#cmakedefine VERSION "@VERSION@" + +// User specified build options + +#cmakedefine HAVE_TAGLIB 1 +#cmakedefine HAVE_YAZ 1 +#cmakedefine HAVE_KCDDB 1 +#cmakedefine HAVE_KCAL 1 +#cmakedefine SAX_SUPPORT 1 + +#cmakedefine AMAZON_SUPPORT 1 +#cmakedefine IMDB_SUPPORT 1 +#cmakedefine USE_CDTEXT 1 +#cmakedefine HAVE_EXEMPI 1 +#cmakedefine HAVE_POPPLER 1 +#cmakedefine ENABLE_WEBCAM 1 + +// System configuration + +#cmakedefine HAVE_USHORT 1 +#cmakedefine HAVE_BOOLEAN 1 +#cmakedefine HAVE_STRDUP_DECL 1 + +#cmakedefine VIDEODEV_HEADER "@VIDEODEV_HEADER@" + +#define SIZEOF_INT @SIZEOF_INT@ +#define SIZEOF_LONG @SIZEOF_LONG@ +#define SIZEOF_SHORT @SIZEOF_SHORT@ +#define SIZEOF_UNSIGNED_CHAR @SIZEOF_UNSIGNED_CHAR@ +#define SIZEOF_UNSIGNED_INT @SIZEOF_UNSIGNED_INT@ +#define SIZEOF_UNSIGNED_LONG @SIZEOF_UNSIGNED_LONG@ +#define SIZEOF_UNSIGNED_SHORT @SIZEOF_UNSIGNED_SHORT@ diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 53715b4..6d282e4 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,4 +1,13 @@ -ADD_SUBDIRECTORY( en ) -ADD_SUBDIRECTORY( fr ) - +################################################# +# +# (C) 2016 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# +add_subdirectory( en ) +add_subdirectory( fr ) diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt index 6ee4510..0a59080 100644 --- a/doc/en/CMakeLists.txt +++ b/doc/en/CMakeLists.txt @@ -1,62 +1,12 @@ - -KDE_CREATE_HANDBOOK( index.docbook Xi - INSTALL_DESTINATION share/doc/tde/HTML/en/tellico - ) - -########### install files ############### - - - - -#original Makefile.am contents follow: - -######## tdevelop will overwrite this part!!! (begin)########## -# +################################################# # -#EXTRA_DIST = \ -#advanced.docbook \ -#configuration.docbook \ -#details.docbook \ -#faqs.docbook \ -#fundamentals.docbook \ -#hacking.docbook \ -#importing-exporting.docbook \ -#index.docbook \ -#menus.docbook \ -#freebsd-doc-license.html \ -#entry-editor1.png \ -#entry-editor3.png \ -#entry-editor4.png \ -#entry-editor5.png \ -#fields-dialog.png \ -#general-options.png \ -#main-window.png \ -#print-options.png \ -#template-options.png \ -#source-options.png \ -#filter-dialog.png \ -#csv-dialog.png \ -#fetch-dialog.png \ -#export-options.png \ -#export-html.png \ -#export-csv.png \ -#export-pdb.png \ -#export-bibtex.png \ -#amazon-options.png \ -#z3950-options.png \ -#externalexec-options.png \ -#report-dialog.png \ -#loan-dialog.png \ -#loan-view.png \ -#filter-view.png \ -#openoffice-dialog.png \ -#sru-options.png \ -#imdb-options.png +# (C) 2016 Slávek Banko +# slavek (DOT) banko (AT) axis.cz # +# Improvements and feedback are welcome # -######## tdevelop will overwrite this part!!! (end)############ +# This file is released under GPL >= 2 # -#KDE_LANG = en -#KDE_DOCS = tellico -# -#CLEANFILES = *~ +################################################# + +tde_create_handbook( LANG en DESTINATION tellico ) diff --git a/doc/fr/CMakeLists.txt b/doc/fr/CMakeLists.txt index 99346d1..0391603 100644 --- a/doc/fr/CMakeLists.txt +++ b/doc/fr/CMakeLists.txt @@ -1,60 +1,12 @@ -INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} ) - - -########### install files ############### - - - - -#original Makefile.am contents follow: - -######## tdevelop will overwrite this part!!! (begin)########## -# +################################################# # -#EXTRA_DIST = \ -#advanced.docbook \ -#configuration.docbook \ -#details.docbook \ -#faqs.docbook \ -#fundamentals.docbook \ -#hacking.docbook \ -#importing-exporting.docbook \ -#index.docbook \ -#menus.docbook \ -#freebsd-doc-license.html \ -#entry-editor1.png \ -#entry-editor3.png \ -#entry-editor4.png \ -#entry-editor5.png \ -#fields-dialog.png \ -#general-options.png \ -#main-window.png \ -#print-options.png \ -#template-options.png \ -#source-options.png \ -#filter-dialog.png \ -#csv-dialog.png \ -#fetch-dialog.png \ -#export-options.png \ -#export-html.png \ -#export-csv.png \ -#export-pdb.png \ -#export-bibtex.png \ -#amazon-options.png \ -#z3950-options.png \ -#externalexec-options.png \ -#report-dialog.png \ -#loan-dialog.png \ -#loan-view.png \ -#filter-view.png \ -#openoffice-dialog.png \ -#sru-options.png \ -#imdb-options.png +# (C) 2016 Slávek Banko +# slavek (DOT) banko (AT) axis.cz # +# Improvements and feedback are welcome # -######## tdevelop will overwrite this part!!! (end)############ +# This file is released under GPL >= 2 # -#KDE_LANG = fr -#KDE_DOCS = tellico -# -#CLEANFILES = *~ +################################################# + +tde_create_handbook( LANG fr DESTINATION tellico ) diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt new file mode 100644 index 0000000..4c13ff1 --- /dev/null +++ b/icons/CMakeLists.txt @@ -0,0 +1,63 @@ +################################################# +# +# (C) 2016 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + + +##### install application icon ################## +tde_install_icons( ) + + +##### other data ################################ +install( + FILES + album.png + bibtex.png + tellico.png + tellico.svg + tellico_mime.svg + boardgame.png + book.png + card.png + coin.png + comic.png + game.png + person-open.png + person.png + stamp.png + star_on.png + star_off.png + stars1.png + stars2.png + stars3.png + stars4.png + stars5.png + stars6.png + stars7.png + stars8.png + stars9.png + stars10.png + video.png + wine.png + checkmark.png + README.icons + README.quesnay + file.png + nocover_album.png + nocover_boardgame.png + nocover_book.png + nocover_bibtex.png + nocover_comic.png + nocover_game.png + nocover_video.png + script.svg + script.png + DESTINATION + ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/pics +) diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 6b60c4a..6befcef 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -1,5 +1,12 @@ -file(GLOB _po_files *.po) - -#GETTEXT_CREATE_TRANSLATIONS(tellico.pot ALL ${_po_files} ) - +################################################# +# +# (C) 2016 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# +tde_create_translation( LANG auto OUTPUT_NAME tellico ) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..342ce63 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,83 @@ +################################################# +# +# (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_BINARY_DIR}/core + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/core + ${LIBXML_INCLUDE_DIRS} + ${LIBXSLT_INCLUDE_DIRS} + ${EXEMPI_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${POPPLER_LIBRARY_DIRS} +) + + +##### tellico (executable) ###################### + +tde_add_executable( tellico AUTOMOC + SOURCES + borrower.cpp borrowerdialog.cpp + borroweritem.cpp calendarhandler.cpp collection.cpp collectionfactory.cpp + collectionfieldsdialog.cpp configdialog.cpp controller.cpp detailedentryitem.cpp + detailedlistview.cpp document.cpp entry.cpp entryeditdialog.cpp entrygroupitem.cpp + entryiconfactory.cpp entryiconview.cpp entryitem.cpp entrymerger.cpp entryupdater.cpp + entryview.cpp exportdialog.cpp fetchdialog.cpp fetcherconfigdialog.cpp field.cpp + fieldcompletion.cpp filehandler.cpp filter.cpp filterdialog.cpp filteritem.cpp + filterview.cpp groupiterator.cpp groupview.cpp image.cpp imagefactory.cpp + importdialog.cpp isbnvalidator.cpp iso5426converter.cpp iso6937converter.cpp + listviewcomparison.cpp loandialog.cpp loanitem.cpp loanview.cpp main.cpp mainwindow.cpp + progressmanager.cpp reportdialog.cpp statusbar.cpp tellico_kernel.cpp tellico_strings.cpp + tellico_utils.cpp upcvalidator.cpp viewstack.cpp xmphandler.cpp lccnvalidator.cpp + LINK + core-static gui-static cite-static fetch-static + collections-static newstuff-static translators-static + pilotdb-static pilotdb_flatfile-static pilotdb_palm-static + rtf2html-static commands-static ${BTPARSE_LIBRARIES} ${WEBCAM_LIBRARIES} + tdecore-shared tdefx-shared tdeui-shared tdeio-shared tdehtml-shared + tdetexteditor-shared tdeparts-shared tdenewstuff-shared tdeabc-shared + ${LIBKCAL_LIBRARY} ${LIBKCDDB_LIBRARY} ${LIBXML_LIBRARIES} ${LIBXSLT_LIBRARIES} + ${TAGLIB_LIBRARIES} ${YAZ_LIBRARIES} ${EXEMPI_LIBRARIES} ${POPPLER_LIBRARIES} + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other data ################################ +install( + FILES tellicoui.rc + DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME} +) +install( + FILES tellicorc + DESTINATION ${CONFIG_INSTALL_DIR} +) + + +##### directories ############################### + +add_subdirectory( core ) +add_subdirectory( gui ) +add_subdirectory( collections ) +add_subdirectory( translators ) +add_subdirectory( fetch ) +add_subdirectory( commands ) +add_subdirectory( cite ) +add_subdirectory( newstuff ) +add_subdirectory( rtf2html ) +tde_conditional_add_subdirectory( BUILD_WEBCAM_SUPPORT barcode ) +add_subdirectory( tests ) diff --git a/src/barcode/CMakeLists.txt b/src/barcode/CMakeLists.txt new file mode 100644 index 0000000..99079d6 --- /dev/null +++ b/src/barcode/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} +) + + +##### barcode (static) ########################## + +tde_add_library( barcode STATIC_PIC AUTOMOC + SOURCES barcode.cpp barcode_v4l.cpp +) diff --git a/src/cite/CMakeLists.txt b/src/cite/CMakeLists.txt new file mode 100644 index 0000000..691d7e8 --- /dev/null +++ b/src/cite/CMakeLists.txt @@ -0,0 +1,33 @@ +################################################# +# +# (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} +) + + +##### cite (static) ############################# + +tde_add_library( cite STATIC_PIC AUTOMOC + SOURCES lyxpipe.cpp actionmanager.cpp clipboard.cpp openoffice.cpp +) + +##### directories ############################### + +tde_conditional_add_subdirectory( BUILD_OOO_SUPPORT ooo ) diff --git a/src/collections/CMakeLists.txt b/src/collections/CMakeLists.txt new file mode 100644 index 0000000..aaef8e2 --- /dev/null +++ b/src/collections/CMakeLists.txt @@ -0,0 +1,34 @@ +################################################# +# +# (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} +) + + +##### collections (static) ###################### + +tde_add_library( collections STATIC_PIC AUTOMOC + SOURCES + winecollection.cpp stampcollection.cpp + comicbookcollection.cpp cardcollection.cpp coincollection.cpp + bibtexcollection.cpp musiccollection.cpp videocollection.cpp + bookcollection.cpp gamecollection.cpp filecatalog.cpp + boardgamecollection.cpp +) diff --git a/src/commands/CMakeLists.txt b/src/commands/CMakeLists.txt new file mode 100644 index 0000000..e0628fc --- /dev/null +++ b/src/commands/CMakeLists.txt @@ -0,0 +1,34 @@ +################################################# +# +# (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} +) + + +##### commands (static) ######################### + +tde_add_library( commands STATIC_PIC AUTOMOC + SOURCES + addentries.cpp modifyentries.cpp removeentries.cpp + addloans.cpp modifyloans.cpp removeloans.cpp + fieldcommand.cpp filtercommand.cpp reorderfields.cpp + group.cpp collectioncommand.cpp renamecollection.cpp + updateentries.cpp +) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt new file mode 100644 index 0000000..7b4bf09 --- /dev/null +++ b/src/core/CMakeLists.txt @@ -0,0 +1,56 @@ +################################################# +# +# (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} +) + + +##### core (static) ############################# + +set( target core ) + +set( ${target}_SRCS + dcopinterface.cpp dcopinterface.skel drophandler.cpp + netaccess.cpp tellico_config.kcfgc tellico_config_addons.cpp +) + +tde_save( KDE3_DCOPIDL_EXECUTABLE ) +set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} ) +kde3_add_dcop_skels( ${target}_SRCS ) +tde_restore( KDE3_DCOPIDL_EXECUTABLE ) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) + + +##### other data ################################ +install( + FILES tellico_config.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) +install( + FILES tellico-rename.upd tellico.upd + DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update +) +install( + PROGRAMS tellico-1-3-update.pl + DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update +) diff --git a/src/fetch/CMakeLists.txt b/src/fetch/CMakeLists.txt new file mode 100644 index 0000000..442d17f --- /dev/null +++ b/src/fetch/CMakeLists.txt @@ -0,0 +1,52 @@ +################################################# +# +# (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} + ${LIBXML_INCLUDE_DIRS} + ${LIBXSLT_INCLUDE_DIRS} + ${YAZ_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### fetch (static) ############################ + +tde_add_library( fetch STATIC_PIC AUTOMOC + SOURCES + amazonfetcher.cpp animenfofetcher.cpp arxivfetcher.cpp + bibsonomyfetcher.cpp citebasefetcher.cpp configwidget.cpp crossreffetcher.cpp + discogsfetcher.cpp entrezfetcher.cpp execexternalfetcher.cpp fetcher.cpp fetchmanager.cpp + gcstarpluginfetcher.cpp googlescholarfetcher.cpp ibsfetcher.cpp imdbfetcher.cpp + isbndbfetcher.cpp messagehandler.cpp srufetcher.cpp yahoofetcher.cpp z3950connection.cpp + z3950fetcher.cpp amazonrequest.cpp hmac_sha2.c sha2.c + LINK + gui-static +) + + +##### other data ################################ +install( + FILES z3950-servers.cfg + DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME} +) + + +##### directories ############################### + +add_subdirectory( scripts ) diff --git a/src/fetch/scripts/CMakeLists.txt b/src/fetch/scripts/CMakeLists.txt new file mode 100644 index 0000000..0792a6b --- /dev/null +++ b/src/fetch/scripts/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 +# +################################################# + + +##### other data ################################ +install( + FILES + fr.allocine.py.spec + ministerio_de_cultura.py.spec + dark_horse_comics.py.spec + boardgamegeek.rb.spec + DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/data-sources +) +install( + PROGRAMS + fr.allocine.py + ministerio_de_cultura.py + dark_horse_comics.py + boardgamegeek.rb + DESTINATION ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/data-sources +) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt new file mode 100644 index 0000000..ad7279c --- /dev/null +++ b/src/gui/CMakeLists.txt @@ -0,0 +1,36 @@ +################################################# +# +# (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} +) + + +##### gui (static) ############################## + +tde_add_library( gui STATIC_PIC AUTOMOC + SOURCES + combobox.cpp counteditem.cpp datewidget.cpp + tabcontrol.cpp kwidgetlister.cpp stringmapdialog.cpp listview.cpp richtextlabel.cpp + lineedit.cpp boolfieldwidget.cpp choicefieldwidget.cpp linefieldwidget.cpp + numberfieldwidget.cpp parafieldwidget.cpp urlfieldwidget.cpp tablefieldwidget.cpp + imagefieldwidget.cpp datefieldwidget.cpp imagewidget.cpp fieldwidget.cpp ratingwidget.cpp + ratingfieldwidget.cpp overlaywidget.cpp progress.cpp listboxtext.cpp collectiontypecombo.cpp + previewdialog.cpp +) diff --git a/src/newstuff/CMakeLists.txt b/src/newstuff/CMakeLists.txt new file mode 100644 index 0000000..22fed75 --- /dev/null +++ b/src/newstuff/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} +) + + +##### newstuff (static) ######################### + +tde_add_library( newstuff STATIC_PIC AUTOMOC + SOURCES manager.cpp dialog.cpp newscript.cpp +) diff --git a/src/rtf2html/CMakeLists.txt b/src/rtf2html/CMakeLists.txt new file mode 100644 index 0000000..400b9a8 --- /dev/null +++ b/src/rtf2html/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} +) + + +##### rtf2html (static) ######################### + +tde_add_library( rtf2html STATIC_PIC AUTOMOC + SOURCES fmt_opts.cpp rtf2html.cpp rtf_keyword.cpp rtf_table.cpp +) diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt new file mode 100644 index 0000000..1a00233 --- /dev/null +++ b/src/tests/CMakeLists.txt @@ -0,0 +1,57 @@ +################################################# +# +# (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} +) + + +##### define tests ############################## + +add_test( isbtest isbntest ) + +add_test( latin1test latin1test ) + +add_test( entitytest entitytest ) + + +##### test programs ############################# + +tde_add_executable( isbntest AUTOMOC + SOURCES + isbntest.cpp + ../isbnvalidator.cpp ../upcvalidator.cpp + LINK + tdecore-shared tdeui-shared +) + +tde_add_executable( latin1test AUTOMOC + SOURCES + latin1test.cpp + LINK + tdecore-shared +) + +tde_add_executable( entitytest AUTOMOC + SOURCES + entitytest.cpp + ../tellico_utils.cpp + LINK + tdecore-shared +) 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 +) diff --git a/xslt/CMakeLists.txt b/xslt/CMakeLists.txt new file mode 100644 index 0000000..34e0d23 --- /dev/null +++ b/xslt/CMakeLists.txt @@ -0,0 +1,57 @@ +################################################# +# +# (C) 2016 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + + +##### other data ################################ +install( + FILES + tellico-printing.xsl + tellico-by-author.xsl + tellico-by-title.xsl + tellico2html.xsl + shadowAlpha.png + cassette-logo.png + cd-logo.png + dvd-logo.png + record-logo.png + vhs-logo.png + tellico-common.xsl + mods2tellico.xsl + amazon2tellico.xsl + MARC21slim2MODS3.xsl + MARC21slimUtils.xsl + pubmed2tellico.xsl + tellico2onix.xsl + UNIMARC2MODS3.xsl + tellico2html.js + yahoo2tellico.xsl + isbndb2tellico.xsl + bluray-logo.png + hddvd-logo.png + gcstar2tellico.xsl + xmp2tellico.xsl + crossref2tellico.xsl + arxiv2tellico.xsl + referencer2tellico.xsl + delicious2tellico.xsl + welcome.html + unixref2tellico.xsl + discogs2tellico.xsl + tellico2gcstar.xsl + DESTINATION + ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME} +) + + +##### directories ############################### + +add_subdirectory( entry-templates ) +add_subdirectory( report-templates ) diff --git a/xslt/entry-templates/CMakeLists.txt b/xslt/entry-templates/CMakeLists.txt new file mode 100644 index 0000000..150b09e --- /dev/null +++ b/xslt/entry-templates/CMakeLists.txt @@ -0,0 +1,19 @@ +################################################# +# +# (C) 2016 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + + +##### other data ################################ +install( + FILES + Default.xsl Video.xsl Album.xsl Fancy.xsl Compact.xsl + DESTINATION + ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/entry-templates +) diff --git a/xslt/report-templates/CMakeLists.txt b/xslt/report-templates/CMakeLists.txt new file mode 100644 index 0000000..6b26f33 --- /dev/null +++ b/xslt/report-templates/CMakeLists.txt @@ -0,0 +1,26 @@ +################################################# +# +# (C) 2016 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + + +##### other data ################################ +install( + FILES + Column_View.xsl + "Title_Listing_(Horizontal).xsl" + "Title_Listing_(Vertical).xsl" + Group_View.xsl + Image_List.xsl + Loan_View.xsl + Group_Summary.xsl + Tri-Column.xsl + DESTINATION + ${DATA_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/report-templates +) |