2022-07-19 07:28:07 +00:00
|
|
|
project(Sandbox)
|
|
|
|
|
|
|
|
find_package(
|
|
|
|
Qt5
|
|
|
|
COMPONENTS Core Quick QuickControls2
|
|
|
|
REQUIRED)
|
|
|
|
|
|
|
|
file(GLOB_RECURSE QML_FILES "../*.qml")
|
|
|
|
file(GLOB_RECURSE JS_FILES "../*.js")
|
2022-07-21 09:04:07 +00:00
|
|
|
file(GLOB_RECURSE HEADERS *.h)
|
|
|
|
if(APPLE)
|
|
|
|
file(GLOB_RECURSE SOURCES *.cpp *.mm)
|
|
|
|
else()
|
|
|
|
file(GLOB_RECURSE SOURCES *.cpp)
|
|
|
|
endif()
|
2022-07-19 07:28:07 +00:00
|
|
|
|
|
|
|
qt5_add_big_resources(QRC_FILES qml.qrc ../src/statusq.qrc ../src/assets.qrc)
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
${PROJECT_NAME}
|
2022-07-21 09:04:07 +00:00
|
|
|
${HEADERS}
|
|
|
|
${SOURCES}
|
2022-07-19 07:28:07 +00:00
|
|
|
${QRC_FILES}
|
|
|
|
${QML_FILES}
|
|
|
|
${JS_FILES})
|
|
|
|
|
|
|
|
target_compile_definitions(${PROJECT_NAME}
|
|
|
|
PRIVATE SRC_DIR="${CMAKE_CURRENT_LIST_DIR}")
|
2022-07-19 10:29:18 +00:00
|
|
|
target_link_libraries(
|
|
|
|
${PROJECT_NAME} PRIVATE Qt5::Core Qt5::Quick Qt5::QuickControls2
|
|
|
|
SortFilterProxyModel)
|
2022-07-21 09:04:07 +00:00
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
find_library(AppKit AppKit)
|
|
|
|
find_library(Foundation Foundation)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE ${AppKit} ${Foundation})
|
|
|
|
endif()
|