mirror of
https://github.com/jaredtao/TaoQuick.git
synced 2025-02-06 21:48:24 +08:00
16 lines
656 B
CMake
16 lines
656 B
CMake
set(TaoQuickPath ${CMAKE_SOURCE_DIR}/src/TaoQuick/imports)
|
|
|
|
if (CMAKE_BUILD_TYPE MATCHES "Release")
|
|
set(TaoQuickRes ${TaoQuickPath}/TaoQuick/TaoQuick.qrc)
|
|
add_compile_definitions(TaoQuickImportPath="qrc:///")
|
|
add_compile_definitions(TaoQuickImagePath="qrc:/TaoQuick/Images/")
|
|
else()
|
|
add_compile_definitions(TaoQuickImportPath="file:///${TaoQuickPath}")
|
|
add_compile_definitions(TaoQuickImagePath="file:///${TaoQuickPath}/TaoQuick/Images/")
|
|
endif()
|
|
add_compile_definitions(QML_IMPORT_PATH="${TaoQuickPath}")
|
|
add_compile_definitions(QML2_IMPORT_PATH="${TaoQuickPath}")
|
|
add_compile_definitions(QML_DESIGNER_IMPORT_PATH="${TaoQuickPath}")
|
|
|
|
|