Igor Sirotin 7c1c178d37
QR code scanner (QML component) (#9464)
Co-authored-by: Richard Ramos <info@richardramos.me>
2023-03-07 12:08:38 -04:00

35 lines
760 B
CMake

project(SanityChecker)
find_package(
Qt5
COMPONENTS Core Quick QuickControls2
REQUIRED)
include (../StatusQSources.cmake)
set(QRC_FILES ../src/statusq.qrc ../src/assets.qrc)
qt5_add_resources(QRC_COMPILED ${QRC_FILES})
add_executable(
${PROJECT_NAME}
main.cpp
${QRC_FILES}
${QRC_COMPILED}
${STATUSQ_HEADERS}
${STATUSQ_SOURCES}
)
target_include_directories(${PROJECT_NAME} PUBLIC ${STATUSQ_DIR}/include)
target_link_libraries(
${PROJECT_NAME} PRIVATE Qt5::Core Qt5::Quick Qt5::QuickControls2
SortFilterProxyModel
qzxing)
if (APPLE)
find_library(AppKit AppKit)
find_library(Foundation Foundation)
target_link_libraries(${PROJECT_NAME} PRIVATE ${AppKit} ${Foundation})
endif()