# ########## Project setup ##########
PROJECT(ComicMaster)
SET(COMICMASTER_VERSION 0070)
SET(SQLITEDBVERSION 1)
cmake_minimum_required(VERSION 2.8.9)
SET(QTVERSION 5)
set(CMAKE_CXX_FLAGS "-fPIC")
set(CMAKE_PREFIX_PATH "/usr/local/qt5-clang/lib/cmake")
set(CMAKE_EXE_LINKER_FLAGS "-rdynamic")
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Xml REQUIRED)
find_package(Qt5Sql REQUIRED)
find_package(Qt5Quick REQUIRED)
find_package(Qt5Qml REQUIRED)
find_package(Qt5QuickWidgets REQUIRED)
#find_package(Qt5 COMPONENTS QtCore QtGui QtXml QtSql REQUIRED)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
include_directories(SYSTEM
"/usr/local/qt5-clang/include/"
"/usr/local/qt5-clang/include/QtGui"
"/usr/local/qt5-clang/include/QtCore"
"/usr/local/qt5-clang/include/QtWidgets"
)
set(CMAKE_PREFIX_PATH "/usr/local/qt5-clang/lib/cmake")
ADD_DEFINITIONS( " -ansi -Wextra -Werror -Wall
-Reverything
-Weverything
-Wno-exit-time-destructors
-Wno-global-constructors
-Wno-documentation-unknown-command
-Wno-weak-vtables
-Wno-padded
-Wno-error-missing-prototypes
-Wno-missing-prototypes
-Wno-undefined-reinterpret-cast
-Wno-c++98-compat-pedantic
-Wno-float-conversion
-Wno-system-headers
-Wno-disabled-macro-expansion
-std=c++14 -DDATABASE=1 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON")
endif()
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
message("GNU")
set(CMAKE_PREFIX_PATH "/usr/local/Qt/lib/cmake")
ADD_DEFINITIONS( " -ansi -Wextra -Werror -Wall
-Wno-padded
-Wno-float-conversion
-Wno-system-headers
-std=c++14 -DDATABASE=1" )
endif()
SET(CMAKE_BUILD_TYPE Debug)
SET(QML_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/QMLFiles)
MESSAGE(${QML_SOURCE_DIR})
SET(QML_CONFIG
${QML_SOURCE_DIR}/qmldir
)
if(UNITTESTS)
add_subdirectory(
UnitTests
)
endif()
SET(CMAKE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
SET(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "ComicMaster")
SET(CPACK_PACKAGE_VENDOR "Guido Seifert")
SET(CPACK_PACKAGE_CONTACT "Guido Seifert")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
SET(CPACK_PACKAGE_VERSION_MINOR "3")
SET(CPACK_PACKAGE_VERSION_PATCH "2")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
SET(CPACK_PACKAGE_EXECUTABLES "ComicMaster" "ComicMaster")
SET(CPACK_GENERATOR "DEB" ; "RPM")
INCLUDE(CPack)
SET(QT_USE_SQL TRUE)
SET(QT_USE_XML TRUE)
configure_file (
"${CMAKE_SOURCE_DIR}/ComicMasterConfig.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/src/ComicMasterConfig.h"
)
include_directories(
${Qt5Core_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS}
${Qt5Sql_INCLUDE_DIRS}
${Qt5Xml_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)
SET(ComicMaster_RCC_SRCS
${CMAKE_SOURCE_DIR}/ComicMaster.qrc
${CMAKE_SOURCE_DIR}/XML.qrc
${CMAKE_SOURCE_DIR}/SQLite.qrc
)
SET(ComicMaster_MOC_HDRS
${CMAKE_SOURCE_DIR}/ComicMaster.h
${CMAKE_SOURCE_DIR}/Help/NavigationHelpForm.h
${CMAKE_SOURCE_DIR}/MouseGestureHandler.h
${CMAKE_SOURCE_DIR}/MouseGestures/QjtMouseGesture.h
${CMAKE_SOURCE_DIR}/PageManager/PageListManager.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListStack.h
${CMAKE_SOURCE_DIR}/ControlCenter/ControlButtonsForm.h
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiveManager.h
${CMAKE_SOURCE_DIR}/ControlCenter/ControlCenter.h
${CMAKE_SOURCE_DIR}/DisplayCode/DisplayScene.h
${CMAKE_SOURCE_DIR}/DisplayCode/MagnifierForm.h
${CMAKE_SOURCE_DIR}/DisplayCode/MagnifierView.h
${CMAKE_SOURCE_DIR}/DisplayCode/DisplayMenu.h
${CMAKE_SOURCE_DIR}/DisplayCode/Menu.h
${CMAKE_SOURCE_DIR}/KeyboardManager/ControlHandler.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileManager.h
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiveProcessHandler.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorCancelAction.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorExtractAction.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorWriteAction.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorDirAction.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorOpenAction.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorWritePDFAction.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorEnterAction.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorVerifyAction.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorCheckDoubleAction.h
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiverInterface.h
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiveVerificator.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorForm.h
${CMAKE_SOURCE_DIR}/ErrorHandler/ErrorManager.h
${CMAKE_SOURCE_DIR}/ControlCenter/ConfigTabs.h
${CMAKE_SOURCE_DIR}/ControlCenter/AboutComicMasterForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/SimpleFileRenamerForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/ImageRenamerForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/ComicDataForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/SimpleFileRenamerForm.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorAbstractAction.h
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/EditStorageDialog.h
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/AbstractStorageForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/TitleStorageDialog.h
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/InputPublisherForm.h
${CMAKE_SOURCE_DIR}/Configuration/DBModels/TitleModel.h
${CMAKE_SOURCE_DIR}/Configuration/DBModels/PageTypeModel.h
${CMAKE_SOURCE_DIR}/ControlCenter/ReorderPlate/ThumbListView.h
${CMAKE_SOURCE_DIR}/ControlCenter/ReorderPlate/ReorderForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/SearchThread.h
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/DuplicatesSearchThread.h
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/SearchFrame.h
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/ResultView.h
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/ResultModel.h
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/SearchDirModel.h
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/SearchResultForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/SearchFolderSelectionForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/SearchControlsForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/Configuration/XMLConfigForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/Configuration/PortraitLandscapeConfigForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/Configuration/ConfigurationForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/KeyboardConfig/KeyPressReceiver.h
${CMAKE_SOURCE_DIR}/ControlCenter/KeyboardConfig/KeyCodeDelegate.h
${CMAKE_SOURCE_DIR}/ControlCenter/KeyboardConfig/KeyboardConfigForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageNodeBox.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/GroupingPlate/PathsForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/GroupingPlate/PublisherForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/GroupingPlate/TitleForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/GroupingPlate/TitleInfoForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/ProblemPlate/ProblemDisplayForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/ProblemPlate/ProblemManagerForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/ProblemPlate/ProblemForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/ExportPlate/ExportForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaPlate/CreditsBox.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaPlate/MetaDataForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaPlate/SeriesMetaForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaPlate/BooksMetaForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaPlate/StoryMetaForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaForm.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/BookmarkWidget.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/FileSelectorRenamer.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/NameSelector.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/BookmarkUpdater.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/FileSelectorButtons.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/FilterSelector.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/PathNavigator.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/DirModel.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FilterSelectorFrame.h
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/DirTree.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageData/PageDataForm.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/AbstractPageListModifierAction.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierOpenAction.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierReorderAction.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierAddSlotAction.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierRemoveAction.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierSearchAction.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierCreateAction.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierRemoveSlotAction.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierExportAction.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierRenameAction.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageDialog.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifier.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PagesListView.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/CommentDisplayForm.h
${CMAKE_SOURCE_DIR}/InitialMessageForm.h
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiverUnzip.h
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiverRar.h
${CMAKE_SOURCE_DIR}/PageManager/FillListThread.h
${CMAKE_SOURCE_DIR}/Help/HelpText.h
${CMAKE_SOURCE_DIR}/Help/SwipeExample.h
${CMAKE_SOURCE_DIR}/Help/ClickExample.h
)
QT5_WRAP_CPP(ComicMaster_MOC_SRCS ${ComicMaster_MOC_HDRS})
QT5_ADD_RESOURCES(ComicMaster_Resource ${ComicMaster_RCC_SRCS})
# ########## ComicMaster executable ##########
# Sources:
SET(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
SET(ComicMaster_executable_NOMOC
${CMAKE_SOURCE_DIR}/Application.h
${CMAKE_SOURCE_DIR}/ErrorHandler/ErrorManagerSingleton.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/ActionAnnouncerSingleton.h
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/ActionAnnouncer.h
${CMAKE_SOURCE_DIR}/DisplayCode/ImageTransformer.h
${CMAKE_SOURCE_DIR}/Help/SwipeSequence.h
${CMAKE_SOURCE_DIR}/CommonCode/Singleton.h
${CMAKE_SOURCE_DIR}/Configuration/SQLiteSettingsSingleton.h
${CMAKE_SOURCE_DIR}/Configuration/DBModels/PageTypeModelSingleton.h
${CMAKE_SOURCE_DIR}/KeyboardManager/KeyboardManagerSingleton.h
${CMAKE_SOURCE_DIR}/PluginCode/PluginManagerSingleton.h
${CMAKE_SOURCE_DIR}/PluginCode/ComicDatabase/DatabaseCode/DatabaseManager/DatabaseManagerInterface.h
)
SET(ComicMaster_executable_SRCS
${CMAKE_SOURCE_DIR}/main.cpp
${CMAKE_SOURCE_DIR}/Application.cpp
${CMAKE_SOURCE_DIR}/ComicMaster.cpp
${CMAKE_SOURCE_DIR}/MouseGestureHandler.cpp
# ${CMAKE_SOURCE_DIR}/TestGesture.cpp
${CMAKE_SOURCE_DIR}/Help/NavigationHelpForm.cpp
${CMAKE_SOURCE_DIR}/Help/HelpText.cpp
${CMAKE_SOURCE_DIR}/Help/SwipeExample.cpp
${CMAKE_SOURCE_DIR}/Help/ClickExample.cpp
${CMAKE_SOURCE_DIR}/Help/SwipeSequence.cpp
${CMAKE_SOURCE_DIR}/MouseGestures/mousegesturerecognizer.cpp
${CMAKE_SOURCE_DIR}/MouseGestures/QjtMouseGesture.cpp
${CMAKE_SOURCE_DIR}/MouseGestures/QjtMouseGestureFilter.cpp
${CMAKE_SOURCE_DIR}/PageManager/DirListModel.cpp
${CMAKE_SOURCE_DIR}/PageManager/FillListThread.cpp
${CMAKE_SOURCE_DIR}/PageManager/ImageListModel.cpp
${CMAKE_SOURCE_DIR}/PageManager/PageList.cpp
${CMAKE_SOURCE_DIR}/PageManager/PageListManager.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/CommandKeyMap.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/FitHeightHandler.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/KeyboardClient.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/KeyboardServer.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/PageHandler.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/CommandStringMap.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/FitWidthHandler.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/KeyboardManager.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/KeyCodes.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/RotationHandler.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/ControlHandler.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/ImageSaver.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/KeyboardModel.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/OriginalSizeHandler.cpp
${CMAKE_SOURCE_DIR}/KeyboardManager/ZoomHandler.cpp
${CMAKE_SOURCE_DIR}/DisplayCode/MagnifierForm.cpp
${CMAKE_SOURCE_DIR}/DisplayCode/MagnifierView.cpp
${CMAKE_SOURCE_DIR}/DisplayCode/DisplayScene.cpp
${CMAKE_SOURCE_DIR}/DisplayCode/DisplayMenu.cpp
${CMAKE_SOURCE_DIR}/DisplayCode/Menu.cpp
${CMAKE_SOURCE_DIR}/DisplayCode/FitOriginalFilter.cpp
${CMAKE_SOURCE_DIR}/DisplayCode/FitHeightFilter.cpp
${CMAKE_SOURCE_DIR}/DisplayCode/FitWidthFilter.cpp
${CMAKE_SOURCE_DIR}/DisplayCode/Rotate90Filter.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileDialog.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileManager.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/HashManager.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveReaderWriter.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/ImagesHandling.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/TemporaryDirs.cpp
${CMAKE_SOURCE_DIR}/Configuration/BookmarkStorage.cpp
${CMAKE_SOURCE_DIR}/Configuration/GeometryStorage.cpp
${CMAKE_SOURCE_DIR}/Configuration/PathListStorage.cpp
${CMAKE_SOURCE_DIR}/Configuration/PublisherData.cpp
${CMAKE_SOURCE_DIR}/Configuration/StringStorage.cpp
${CMAKE_SOURCE_DIR}/Configuration/BoolStorage.cpp
${CMAKE_SOURCE_DIR}/Configuration/KeyboardStorage.cpp
${CMAKE_SOURCE_DIR}/Configuration/PathStorage.cpp
${CMAKE_SOURCE_DIR}/Configuration/SQLiteSettings.cpp
${CMAKE_SOURCE_DIR}/Configuration/ValueStorage.cpp
${CMAKE_SOURCE_DIR}/XML/CMLHandler.cpp
${CMAKE_SOURCE_DIR}/PluginCode/ControlCenterInterface.cpp
${CMAKE_SOURCE_DIR}/PluginCode/MainProgramInterface.cpp
${CMAKE_SOURCE_DIR}/PluginCode/PluginManager.cpp
${CMAKE_SOURCE_DIR}/PluginCode/SingletonAccess.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiveProcessHandler.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiveManager.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiverUnrar.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiveVerificator.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/Archiver.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiverUnzip.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/BasicArchiveManager.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiverRar.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/ArchiveCode/ArchiverZip.cpp
${CMAKE_SOURCE_DIR}/ErrorHandler/AbstractErrorObject.cpp
${CMAKE_SOURCE_DIR}/ErrorHandler/ErrorManager.cpp
${CMAKE_SOURCE_DIR}/ErrorHandler/ErrorObject.cpp
${CMAKE_SOURCE_DIR}/ErrorHandler/GeneralError.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/AboutComicMasterForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/ConfigTabs.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/ControlCenter.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListStack.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/ControlButtonsForm.cpp
${CMAKE_SOURCE_DIR}/CommonCode/DatabaseCreator.cpp
${CMAKE_SOURCE_DIR}/CommonCode/CaptionCode.cpp
${CMAKE_SOURCE_DIR}/CommonCode/PreparedQuery.cpp
${CMAKE_SOURCE_DIR}/CommonCode/PostgresCodes.cpp
${CMAKE_SOURCE_DIR}/CommonCode/CurrentComicData.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/ActionAnnouncerClient.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageDisplay.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifier.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/UserEvent.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/ActionAnnouncer.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageDialog.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageNodeBox.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/CommentDisplayForm.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/DirListItem.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/DirTree.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FilterSelectorFrame.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/SelectionChangeObserver.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/DirModel.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorForm.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/PathHandler.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorCancelAction.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorExtractAction.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorWriteAction.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorDirAction.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorOpenAction.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorWritePDFAction.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorEnterAction.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorVerifyAction.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorButtons/FileSelectorCheckDoubleAction.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/ExportPlate/ExportForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaPlate/MetaDataForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/SimpleFileRenamerForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/KeyboardConfig/KeyboardConfigForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/KeyboardConfig/KeyCodeDelegate.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/KeyboardConfig/KeyPressReceiver.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/KeyboardConfig/KeyView.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/Configuration/PortraitLandscapeConfigForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/Configuration/XMLConfigForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/Configuration/ConfigurationForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/SearchControlsForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/SearchFolderSelectionForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/SearchResultForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/ResultView.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/ResultModel.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/SearchDirModel.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/SearchFrame.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/SearchThread.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SearchPlate/DuplicatesSearchThread.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/ReorderPlate/ReorderForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/ReorderPlate/SmallImage.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/ReorderPlate/ThumbListView.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/AbstractStorageForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/InputPublisherForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/TitleStorageDialog.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/EditStorageDialog.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/SimpleFileRenamerForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/ImageRenamerForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/SimpleFileRenamer/ComicDataForm.cpp
${CMAKE_SOURCE_DIR}/Configuration/DBModels/ImageModel.cpp
${CMAKE_SOURCE_DIR}/Configuration/DBModels/PageTypeModel.cpp
${CMAKE_SOURCE_DIR}/Configuration/DBModels/PathsModel.cpp
${CMAKE_SOURCE_DIR}/Configuration/DBModels/ProblemModel.cpp
${CMAKE_SOURCE_DIR}/Configuration/DBModels/PublisherModel.cpp
${CMAKE_SOURCE_DIR}/Configuration/DBModels/TitleModel.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/GroupingPlate/PathsForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/GroupingPlate/PublisherForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/GroupingPlate/TitleForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/GroupingPlate/TitleInfoForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/ProblemPlate/ProblemDisplayForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/ProblemPlate/ProblemManagerForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/ProblemPlate/ProblemForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaPlate/CreditsBox.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaPlate/SeriesMetaForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaPlate/StoryItem.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaPlate/BooksMetaForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/MetaDataPlate/MetaPlate/StoryMetaForm.cpp
${CMAKE_SOURCE_DIR}/PDFCreator/AbstractPDFObject.cpp
${CMAKE_SOURCE_DIR}/PDFCreator/Content.cpp
${CMAKE_SOURCE_DIR}/PDFCreator/ObjectCreatorS.cpp
${CMAKE_SOURCE_DIR}/PDFCreator/Page.cpp
${CMAKE_SOURCE_DIR}/PDFCreator/PDFDocument.cpp
${CMAKE_SOURCE_DIR}/PDFCreator/Xref.cpp
${CMAKE_SOURCE_DIR}/PDFCreator/Catalog.cpp
${CMAKE_SOURCE_DIR}/PDFCreator/Header.cpp
${CMAKE_SOURCE_DIR}/PDFCreator/ObjectManager.cpp
${CMAKE_SOURCE_DIR}/PDFCreator/PageTree.cpp
${CMAKE_SOURCE_DIR}/PDFCreator/Trailer.cpp
${CMAKE_SOURCE_DIR}/JPEGComments/JPEGComments.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/BookmarkTableModel.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/BookmarkWidget.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/FileSelectorRenamer.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/NameSelector.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/BookmarkUpdater.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/FileSelectorButtons.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/FilterSelector.cpp
${CMAKE_SOURCE_DIR}/FileManipulator/FileSelectorDialog/FileSelectorComponents/PathNavigator.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageData/PageDataForm.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/AbstractPageListModifierAction.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierOpenAction.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierReorderAction.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierAddSlotAction.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierRemoveAction.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierSearchAction.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierCreateAction.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierRemoveSlotAction.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierExportAction.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PageListModifierActions/PageListModifierRenameAction.cpp
${CMAKE_SOURCE_DIR}/ControlCenter/PageListModifier/PagesListView.cpp
${CMAKE_SOURCE_DIR}/InitialMessageForm.cpp
${CMAKE_SOURCE_DIR}/Docs/english/HelpForward.html
${CMAKE_SOURCE_DIR}/Docs/english/HelpBackward.html
${CMAKE_SOURCE_DIR}/Docs/english/HelpNextComic.html
${CMAKE_SOURCE_DIR}/Docs/english/HelpPreviousComic.html
${CMAKE_SOURCE_DIR}/Docs/english/HelpZoomComic.html
${CMAKE_SOURCE_DIR}/Docs/english/HelpRotateComic.html
${CMAKE_SOURCE_DIR}/Docs/english/HelpRemovePage.html
${CMAKE_SOURCE_DIR}/Docs/english/HelpStoreChanges.html
${CMAKE_SOURCE_DIR}/resource/SQLiteInit.sql
${CMAKE_SOURCE_DIR}/resource/PostgresComicDatabaseSchema.sql
${CMAKE_SOURCE_DIR}/resource/schemaComic.cml
#${QML_SOURCE_DIR}/myqml.qml
)
QT5_WRAP_UI(UIS_HDRS
src/ui_forms/ExportForm.ui
src/ui_forms/PortraitLandscapeConfigForm.ui
src/ui_forms/XMLConfigForm.ui
src/ui_forms/InitialMessageForm.ui
src/ui_forms/AboutComicMasterForm.ui
src/ui_forms/SimpleFileRenamerForm.ui
src/ui_forms/ImageRenamerForm.ui
src/ui_forms/ComicDataForm.ui
src/ui_forms/NavigationHelpForm.ui
src/ui_forms/InputPublisherForm.ui
src/ui_forms/AbstractStorageForm.ui
src/ui_forms/ControlButtonsForm.ui
src/ui_forms/CommentDisplayForm.ui
src/ui_forms/SearchFolderSelectionForm.ui
src/ui_forms/SearchResultForm.ui
src/ui_forms/SearchControlsForm.ui
src/ui_forms/ReorderForm.ui
src/ui_forms/MetaForm.ui
src/ui_forms/TitleInfoForm.ui
src/ui_forms/PublisherForm.ui
src/ui_forms/PathsForm.ui
src/ui_forms/TitleForm.ui
src/ui_forms/ProblemDisplayForm.ui
src/ui_forms/ProblemManagerForm.ui
src/ui_forms/ProblemForm.ui
src/ui_forms/SeriesMetaForm.ui
src/ui_forms/BooksMetaForm.ui
src/ui_forms/StoryMetaForm.ui
src/ui_forms/MetaDataForm.ui
src/ui_forms/KeyboardConfigForm.ui
src/ui_forms/FileSelectorForm.ui
src/ui_forms/PageDataForm.ui
src/ui_forms/MagnifierForm.ui
src/ui_forms/ConfigurationForm.ui
#-----------
src/ui_forms/AtomicForm.ui
src/ui_forms/MolecularForm.ui
src/ui_forms/BookDatabaseForm.ui
src/ui_forms/DatabaseBaseForm.ui
src/ui_forms/DatabaseTabForm.ui
src/ui_forms/VolumeSelectorForm.ui
src/ui_forms/StoryDatabaseForm.ui
src/ui_forms/BookChooserForm.ui
src/ui_forms/PageForm.ui
src/ui_forms/ArchiveDatabaseForm.ui
)
# actual target:
ADD_EXECUTABLE(ComicMaster
${ComicMaster_executable_SRCS}
${ComicMaster_executable_NOMOC}
${ComicMaster_MOC_SRCS}
${UIS_HDRS}
${ComicMaster_Resource}
)
TARGET_LINK_LIBRARIES(ComicMaster
${Qt5Core_LIBRARIES}
${Qt5Widgets_LIBRARIES}
${Qt5Sql_LIBRARIES}
${Qt5Xml_LIBRARIES}
${Qt5Quick_LIBRARIES}
${Qt5Qml_LIBRARIES}
${Qt5QuickWidgets_LIBRARIES}
)
INSTALL(TARGETS ComicMaster
RUNTIME
DESTINATION bin
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ
)
SET(DATABASE 1)
IF(DATABASE)
include(DatabasePlugin.cmake)
ENDIF()