mirror of
https://github.com/jaredtao/TaoQuick.git
synced 2025-01-31 21:22:58 +08:00
20 lines
898 B
CMake
20 lines
898 B
CMake
set(TaoQuickPath ${CMAKE_SOURCE_DIR}/../../src/TaoQuick/imports)
|
|
|
|
if (CMAKE_BUILD_TYPE MATCHES "Release")
|
|
set(TaoQuickRes ${TaoQuickPath}/TaoQuick/TaoQuick.qrc CACHE STRING "tao quick res path")
|
|
set(TaoQuickImportPath "qrc:///" CACHE STRING "tao quick import path")
|
|
set(TaoQuickImagePath "qrc:/TaoQuick/Images/" CACHE STRING "tao quick image path")
|
|
|
|
else()
|
|
set(TaoQuickImportPath "file:///${TaoQuickPath}" CACHE STRING "tao quick import path")
|
|
set(TaoQuickImagePath "file:///${TaoQuickPath}/TaoQuick/Images/" CACHE STRING "tao quick image path")
|
|
endif()
|
|
add_compile_definitions(TaoQuickImportPath="${TaoQuickImportPath}")
|
|
add_compile_definitions(TaoQuickImagePath="${TaoQuickImagePath}")
|
|
|
|
add_compile_definitions(QML_IMPORT_PATH="${TaoQuickPath}")
|
|
add_compile_definitions(QML2_IMPORT_PATH="${TaoQuickPath}")
|
|
add_compile_definitions(QML_DESIGNER_IMPORT_PATH="${TaoQuickPath}")
|
|
|
|
|