1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-31 21:22:58 +08:00
TaoQuick/cmake/taoQuick.cmake
2021-01-09 15:15:34 +08:00

23 lines
987 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(TaoQuickImport "qrc:///" CACHE STRING "tao quick import path")
set(TaoQuickImage "qrc:/TaoQuick/Images/" CACHE STRING "tao quick image path")
else()
set(TaoQuickImport "file:///${TaoQuickPath}" CACHE STRING "tao quick import path")
set(TaoQuickImage "file:///${TaoQuickPath}/TaoQuick/Images/" CACHE STRING "tao quick image path")
endif()
add_compile_definitions(TaoQuickImport="${TaoQuickImport}")
add_compile_definitions(TaoQuickImage="${TaoQuickImage}")
add_compile_definitions(TaoQuickImportPath="${TaoQuickImport}")
add_compile_definitions(TaoQuickImagePath="${TaoQuickImage}")
add_compile_definitions(QML_IMPORT_PATH="${TaoQuickPath}")
add_compile_definitions(QML2_IMPORT_PATH="${TaoQuickPath}")
add_compile_definitions(QML_DESIGNER_IMPORT_PATH="${TaoQuickPath}")