1c902230fe
* Bulk replaced tabs with spaces * Bulk removed trailing whitespace from lines * Replaced c-style comments with c++-style comments in file banners * Replace nested namespace definitions with single concise definitions (C++17), this keeps the indentation more manageable * Cleanup ordering and spacing of include directives * Bulk renaming of header file extensions from '.h' to '.hpp'. * Update CODING-STYLE.md * Update target_compile_features from cxx_std_11 to cxx_std_20. * Refresh .clang-format file. Still needs a lot of tweaking.
47 lines
855 B
CMake
47 lines
855 B
CMake
project (glbarcode LANGUAGES CXX)
|
|
|
|
#=======================================
|
|
# Sources
|
|
#=======================================
|
|
set (GLBARCODE_SOURCES
|
|
Factory.cpp
|
|
Barcode.cpp
|
|
Barcode1dBase.cpp
|
|
Barcode2dBase.cpp
|
|
BarcodeCode39.cpp
|
|
BarcodeCode39Ext.cpp
|
|
BarcodeUpcBase.cpp
|
|
BarcodeUpcA.cpp
|
|
BarcodeEan13.cpp
|
|
BarcodePostnet.cpp
|
|
BarcodePostnet5.cpp
|
|
BarcodePostnet9.cpp
|
|
BarcodePostnet11.cpp
|
|
BarcodeCepnet.cpp
|
|
BarcodeOnecode.cpp
|
|
BarcodeDataMatrix.cpp
|
|
BarcodeQrcode.cpp
|
|
DrawingPrimitives.cpp
|
|
Renderer.cpp
|
|
QtRenderer.cpp
|
|
)
|
|
|
|
#=====================================
|
|
# Target
|
|
#=====================================
|
|
add_library (glbarcode STATIC
|
|
${GLBARCODE_SOURCES}
|
|
)
|
|
|
|
target_compile_features (glbarcode
|
|
PUBLIC cxx_std_20
|
|
)
|
|
|
|
target_include_directories (glbarcode
|
|
PUBLIC ..
|
|
)
|
|
|
|
target_link_libraries (glbarcode
|
|
Qt6::Widgets
|
|
)
|