- perform scanning in a thread - change the label of the scan button - trigger cancel with the same button and with the ESC key - process all GUI updates in asynchronous mode. Do not use a top window as parent of popups: - If a top window goes away in an application with multiple instances of XInsaneWidget, any call to a scanner widget leads to a crash. Minor changes.
34 lines
1.1 KiB
CMake
34 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}
|
|
${PAPER_LIBRARIES})
|