2023-04-01 21:37:07 +08:00
|
|
|
set(OUTP ${CMAKE_BINARY_DIR}/bin/FluentUI/)
|
2023-04-01 21:01:46 +08:00
|
|
|
|
|
|
|
add_definitions(-DMACOS)
|
|
|
|
|
|
|
|
set(CMAKE_INSTALL_PREFIX ${OUTP})
|
|
|
|
set(CMAKE_INSTALL_DESTDIR ${OUTP})
|
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
|
|
set(QMAKE_MOC_OPTIONS -Muri=${uri})
|
|
|
|
|
|
|
|
add_custom_command(
|
2023-04-01 21:37:07 +08:00
|
|
|
TARGET ${PROJECT_NAME} POST_BUILD
|
2023-04-01 21:01:46 +08:00
|
|
|
COMMAND chmod -R 777 ${CMAKE_CURRENT_SOURCE_DIR}/macos_install.sh
|
2023-04-01 21:37:07 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_custom_command(
|
|
|
|
TARGET ${PROJECT_NAME} POST_BUILD
|
2023-04-01 21:01:46 +08:00
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/macos_install.sh PRESET ${CMAKE_CURRENT_SOURCE_DIR}/ ${OUTP}
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2023-04-01 21:37:07 +08:00
|
|
|
|
|
|
|
if(${TARGET_TYPE} STREQUAL "SHARED")
|
|
|
|
|
|
|
|
set(INST_QMLPATH ${QT_INSTALL_QML}/FluentUI)
|
2023-04-01 21:01:46 +08:00
|
|
|
add_custom_command(
|
2023-04-01 21:37:07 +08:00
|
|
|
TARGET ${PROJECT_NAME} POST_BUILD
|
2023-04-01 21:01:46 +08:00
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/macos_install.sh INSTALL ${CMAKE_CURRENT_SOURCE_DIR}/ ${OUTP} ${INST_QMLPATH}
|
|
|
|
)
|
|
|
|
|
|
|
|
endif()
|