Place one or multiple stamps on scanned pages in defined locations. A stamp is understood here as - a transparent text in a transparent frame with no borders - an opaque text on an opaque background with no borders. Stamp parameters: - text - font - foreground colour - background colour - angle of rotation - transparency. Locations: - centre - cardinal directions - inter-cardinal directions.
35 lines
1.1 KiB
CMake
35 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(InsaneWidget)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/CMake")
|
|
|
|
find_package(wxWidgets COMPONENTS base core CONFIG REQUIRED)
|
|
find_package(LibInsane REQUIRED)
|
|
find_package(PoDoFo REQUIRED)
|
|
find_package(Paper REQUIRED)
|
|
|
|
include_directories(${CMAKE_CURRENT_LIST_DIR}
|
|
${CMAKE_CURRENT_LIST_DIR}/UI
|
|
${CMAKE_CURRENT_LIST_DIR}/../StampWidget
|
|
${CMAKE_CURRENT_LIST_DIR}/../StampWidget/UI
|
|
${CMAKE_CURRENT_LIST_DIR}/../Utilities)
|
|
|
|
add_library(insanewidget STATIC
|
|
UI/InsaneWidget.cpp
|
|
UI/ScannerWidget.cpp
|
|
|
|
DefsInsaneWidget.h
|
|
XInsaneWidget.cpp
|
|
XScannerWidget.cpp
|
|
InsaneWorker.cpp
|
|
PixelToImageWriter.cpp
|
|
PixelToPdfWriter.cpp)
|
|
|
|
target_link_libraries(insanewidget minutils stampwidget
|
|
${wxWidgets_LIBRARIES}
|
|
${LIBINSANE_LIBRARIES}
|
|
${PODOFO_LIBRARIES}
|
|
${NETPBM_LIBRARIES}
|
|
${PAPER_LIBRARIES})
|