CMakeLists.txt 498 B

1234567891011121314151617
  1. set(TARGET simplescan)
  2. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  3. set(CMAKE_AUTOMOC ON)
  4. set(CMAKE_AUTORCC ON)
  5. find_package(Qt5 COMPONENTS Core Quick Qml REQUIRED)
  6. find_package(QtTWAINProject CONFIG REQUIRED COMPONENTS QtTWAIN)
  7. file(GLOB SOURCES main.cpp
  8. scanengine.cpp)
  9. add_executable(${TARGET} ${SOURCES} qml.qrc)
  10. add_target_windeployqt(TARGET ${TARGET} QML_DIR ${CMAKE_CURRENT_SOURCE_DIR}/qml)
  11. target_link_libraries(${TARGET} PRIVATE examples_common QtTWAINProject::QtTWAIN Qt5::Quick Qt5::Qml)