2022-10-27 10:54:23 +00:00
|
|
|
project(SanityChecker)
|
|
|
|
|
|
|
|
find_package(
|
|
|
|
Qt5
|
|
|
|
COMPONENTS Core Quick QuickControls2
|
|
|
|
REQUIRED)
|
|
|
|
|
2023-02-20 14:31:08 +00:00
|
|
|
include (../StatusQSources.cmake)
|
|
|
|
|
2022-10-27 10:54:23 +00:00
|
|
|
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}
|
2023-02-20 14:31:08 +00:00
|
|
|
${STATUSQ_HEADERS}
|
|
|
|
${STATUSQ_SOURCES}
|
2022-10-27 10:54:23 +00:00
|
|
|
)
|
|
|
|
|
2023-02-20 14:31:08 +00:00
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ${STATUSQ_DIR}/include)
|
|
|
|
|
2022-10-27 10:54:23 +00:00
|
|
|
target_link_libraries(
|
|
|
|
${PROJECT_NAME} PRIVATE Qt5::Core Qt5::Quick Qt5::QuickControls2
|
2023-03-07 16:08:38 +00:00
|
|
|
SortFilterProxyModel
|
|
|
|
qzxing)
|
2022-10-27 10:54:23 +00:00
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
find_library(AppKit AppKit)
|
|
|
|
find_library(Foundation Foundation)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE ${AppKit} ${Foundation})
|
|
|
|
endif()
|