2022-07-19 09:28:07 +02:00
|
|
|
project(Sandbox)
|
2023-10-17 11:09:01 +03:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
2022-07-19 09:28:07 +02:00
|
|
|
find_package(
|
2023-04-14 11:18:56 +03:00
|
|
|
Qt5
|
|
|
|
COMPONENTS Core Quick QuickControls2
|
|
|
|
REQUIRED)
|
2023-02-06 17:45:18 +01:00
|
|
|
|
2022-10-27 12:54:23 +02:00
|
|
|
file(GLOB_RECURSE QML_FILES "../*.qml" "../qmldir")
|
2022-07-19 09:28:07 +02:00
|
|
|
file(GLOB_RECURSE JS_FILES "../*.js")
|
2023-02-03 17:36:07 +01:00
|
|
|
|
2023-04-14 11:18:56 +03:00
|
|
|
qt5_add_big_resources(STATUSQ_SANDBOX_QRC qml.qrc)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
sandboxapp.h
|
|
|
|
main.cpp
|
|
|
|
sandboxapp.cpp
|
|
|
|
${STATUSQ_SANDBOX_QRC}
|
|
|
|
${QML_FILES}
|
|
|
|
${JS_FILES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE
|
|
|
|
SANDBOX_SRC_DIR="${CMAKE_CURRENT_LIST_DIR}"
|
2023-05-05 19:05:44 +03:00
|
|
|
STATUSQ_MODULE_PATH="${STATUSQ_MODULE_PATH}"
|
2023-04-14 11:18:56 +03:00
|
|
|
STATUSQ_MODULE_IMPORT_PATH="${STATUSQ_MODULE_IMPORT_PATH}"
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::Quick
|
|
|
|
Qt5::QuickControls2
|
|
|
|
)
|