2020-11-09 01:16:08 +08:00
|
|
|
set(TaoQuickPath ${CMAKE_SOURCE_DIR}/src/TaoQuick/imports)
|
|
|
|
|
|
|
|
if (CMAKE_BUILD_TYPE MATCHES "Release")
|
2020-11-09 14:21:13 +08:00
|
|
|
set(TaoQuickRes ${TaoQuickPath}/TaoQuick/TaoQuick.qrc CACHE STRING "tao quick res path")
|
2021-01-08 18:13:07 +08:00
|
|
|
set(TaoQuickImport "qrc:///" CACHE STRING "tao quick import path")
|
|
|
|
set(TaoQuickImage "qrc:/TaoQuick/Images/" CACHE STRING "tao quick image path")
|
2020-11-11 13:14:00 +08:00
|
|
|
|
2020-11-09 01:16:08 +08:00
|
|
|
else()
|
2021-01-08 18:13:07 +08:00
|
|
|
set(TaoQuickImport "file:///${TaoQuickPath}" CACHE STRING "tao quick import path")
|
|
|
|
set(TaoQuickImage "file:///${TaoQuickPath}/TaoQuick/Images/" CACHE STRING "tao quick image path")
|
2020-11-09 01:16:08 +08:00
|
|
|
endif()
|
2020-12-02 07:58:50 +08:00
|
|
|
|
2021-01-09 15:15:34 +08:00
|
|
|
add_compile_definitions(TaoQuickImport="${TaoQuickImport}")
|
|
|
|
add_compile_definitions(TaoQuickImage="${TaoQuickImage}")
|
|
|
|
|
2021-01-08 18:13:07 +08:00
|
|
|
add_compile_definitions(TaoQuickImportPath="${TaoQuickImport}")
|
|
|
|
add_compile_definitions(TaoQuickImagePath="${TaoQuickImage}")
|
2020-11-11 13:14:00 +08:00
|
|
|
|
2020-11-09 01:16:08 +08:00
|
|
|
add_compile_definitions(QML_IMPORT_PATH="${TaoQuickPath}")
|
|
|
|
add_compile_definitions(QML2_IMPORT_PATH="${TaoQuickPath}")
|
|
|
|
add_compile_definitions(QML_DESIGNER_IMPORT_PATH="${TaoQuickPath}")
|
|
|
|
|