diff --git a/CMakeLists.txt b/CMakeLists.txt index ba8471c..d2cb89a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.8.12) ############################################################################### # gLabels Label Designer Project ############################################################################### -project (glabels) +project (glabels-qt) # # Path for locally defined cmake modules @@ -35,6 +35,7 @@ if (MINGW) set (CMAKE_PREFIX_PATH ${MINGW_BASE_DIR} ) endif () +find_package (Qt5Core 5.4 REQUIRED) find_package (Qt5Widgets 5.4 REQUIRED) find_package (Qt5PrintSupport 5.4 REQUIRED) find_package (Qt5Xml 5.4 REQUIRED) @@ -71,7 +72,10 @@ endif () # Subdirectories #======================================= add_subdirectory (glbarcode) +add_subdirectory (backends) +add_subdirectory (model) add_subdirectory (glabels) +add_subdirectory (glabels-batch) add_subdirectory (templates) add_subdirectory (translations) add_subdirectory (data) diff --git a/backends/CMakeLists.txt b/backends/CMakeLists.txt new file mode 100644 index 0000000..a9b4cdd --- /dev/null +++ b/backends/CMakeLists.txt @@ -0,0 +1,8 @@ + +#======================================= +# Subdirectories +#======================================= +add_subdirectory (barcode) +add_subdirectory (merge) + + diff --git a/glabels/BarcodeBackends.cpp b/backends/barcode/Backends.cpp similarity index 92% rename from glabels/BarcodeBackends.cpp rename to backends/barcode/Backends.cpp index 4ebfba8..f72f712 100644 --- a/glabels/BarcodeBackends.cpp +++ b/backends/barcode/Backends.cpp @@ -1,4 +1,4 @@ -/* BarcodeBackends.cpp +/* Backends.cpp * * Copyright (C) 2014 Jim Evins * @@ -18,28 +18,28 @@ * along with gLabels-qt. If not, see . */ -#include "BarcodeBackends.h" +#include "Backends.h" + +#include "GnuBarcode.h" +#include "QrEncode.h" +#include "Zint.h" #include "glbarcode/Factory.h" -#include "BarcodeBackends/GnuBarcode.h" -#include "BarcodeBackends/QrEncode.h" -#include "BarcodeBackends/Zint.h" - -namespace glabels +namespace glabels::barcode { // // Static data // - QStringList BarcodeBackends::mBackendIdList; - QMap BarcodeBackends::mBackendNameMap; + QStringList Backends::mBackendIdList; + QMap Backends::mBackendNameMap; - QList BarcodeBackends::mStyleList; + QList