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")
|
2020-11-11 13:14:00 +08:00
|
|
|
set(TaoQuickImportPath "qrc:///" CACHE STRING "tao quick import path")
|
|
|
|
set(TaoQuickImagePath "qrc:/TaoQuick/Images/" CACHE STRING "tao quick image path")
|
|
|
|
|
2020-11-09 01:16:08 +08:00
|
|
|
else()
|
2020-11-11 13:14:00 +08:00
|
|
|
set(TaoQuickImportPath "file:///${TaoQuickPath}" CACHE STRING "tao quick import path")
|
|
|
|
set(TaoQuickImagePath "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
|
|
|
|
2020-11-11 13:14:00 +08:00
|
|
|
add_compile_definitions(TaoQuickImportPath="${TaoQuickImportPath}")
|
|
|
|
add_compile_definitions(TaoQuickImagePath="${TaoQuickImagePath}")
|
|
|
|
|
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}")
|
|
|
|
|
|
|
|
|