lang fix
This commit is contained in:
@@ -33,12 +33,12 @@ option(DESIGNER_PLUGINS "Build Qt designer plugins" ${_plugins_default_})
|
|||||||
|
|
||||||
macro(qad_library NAME _MODULES _LIBS)
|
macro(qad_library NAME _MODULES _LIBS)
|
||||||
shstk_qt_project(qad_${NAME} FALSE "qad" "${_MODULES}" "${_LIBS}" ${ARGN})
|
shstk_qt_project(qad_${NAME} FALSE "qad" "${_MODULES}" "${_LIBS}" ${ARGN})
|
||||||
shstk_qt_install("qad" FALSE qad_${NAME} "${out_HDR}" "${out_QM}")
|
shstk_qt_install("qad" FALSE qad_${NAME} "${out_HDR}" "out_QM")
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(qad_application NAME _MODULES _LIBS)
|
macro(qad_application NAME _MODULES _LIBS)
|
||||||
shstk_qt_project(${NAME} TRUE "qad" "${_MODULES}" "${_LIBS}" ${ARGN})
|
shstk_qt_project(${NAME} TRUE "qad" "${_MODULES}" "${_LIBS}" ${ARGN})
|
||||||
shstk_qt_install("qad" TRUE ${NAME} "" "${out_QM}")
|
shstk_qt_install("qad" TRUE ${NAME} "" "out_QM")
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(qad_plugin NAME _MODULES _LIBS)
|
macro(qad_plugin NAME _MODULES _LIBS)
|
||||||
|
|||||||
@@ -207,9 +207,9 @@ macro(find_qt)
|
|||||||
list(APPEND Qt4_LIBRARIES ${QT_QT${_um}_LIBRARY})
|
list(APPEND Qt4_LIBRARIES ${QT_QT${_um}_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
set(Qt4_PLUGINS_DIR ${QT_PLUGINS_DIR})
|
set(Qt4_PLUGINS_DIR ${QT_PLUGINS_DIR} CACHE STRING "")
|
||||||
set(Qt4_LANG_DIR ${Qt4_BIN}/../translations)
|
set(Qt4_LANG_DIR ${Qt4_BIN}/../translations CACHE STRING "")
|
||||||
set(Qt4_ROOT "${Qt4_BIN}/../")
|
set(Qt4_ROOT "${Qt4_BIN}/../" CACHE STRING "")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if (_NEED5)
|
if (_NEED5)
|
||||||
@@ -246,25 +246,26 @@ macro(find_qt)
|
|||||||
# list(APPEND Qt5_INCLUDES ${_up_dir})
|
# list(APPEND Qt5_INCLUDES ${_up_dir})
|
||||||
#endif()
|
#endif()
|
||||||
get_target_property(_Qt5_qmake Qt5::qmake LOCATION)
|
get_target_property(_Qt5_qmake Qt5::qmake LOCATION)
|
||||||
get_filename_component(Qt5_BIN ${_Qt5_qmake} PATH)
|
get_filename_component(_Qt5_BIN ${_Qt5_qmake} PATH)
|
||||||
foreach(_p ${Qt5Gui_PLUGINS})
|
foreach(_p ${Qt5Gui_PLUGINS})
|
||||||
get_target_property(_l ${_p} LOCATION)
|
get_target_property(_l ${_p} LOCATION)
|
||||||
get_filename_component(_l ${_l} DIRECTORY)
|
get_filename_component(_l ${_l} DIRECTORY)
|
||||||
string(FIND "${_l}" "/" _ind REVERSE)
|
string(FIND "${_l}" "/" _ind REVERSE)
|
||||||
string(SUBSTRING "${_l}" 0 ${_ind} _l)
|
string(SUBSTRING "${_l}" 0 ${_ind} _l)
|
||||||
set(Qt5_PLUGINS_DIR ${_l})
|
|
||||||
#message("Qt5: plugins dir: ${Qt5_PLUGINS_DIR}")
|
#message("Qt5: plugins dir: ${Qt5_PLUGINS_DIR}")
|
||||||
break()
|
break()
|
||||||
endforeach()
|
endforeach()
|
||||||
string(FIND "${Qt5_BIN}" "/" _ind REVERSE)
|
string(FIND "${_Qt5_BIN}" "/" _ind REVERSE)
|
||||||
string(SUBSTRING "${Qt5_BIN}" 0 ${_ind} Qt5_ROOT)
|
string(SUBSTRING "${_Qt5_BIN}" 0 ${_ind} _Qt5_ROOT)
|
||||||
|
set(Qt5_ROOT "${_Qt5_ROOT}" CACHE STRING "")
|
||||||
|
set(Qt5_BIN "${_Qt5_BIN}" CACHE STRING "")
|
||||||
|
set(Qt5_LANG_DIR ${Qt5_BIN}/../translations CACHE STRING "")
|
||||||
if ("x${Qt5_PLUGINS_DIR}" STREQUAL "x")
|
if ("x${Qt5_PLUGINS_DIR}" STREQUAL "x")
|
||||||
set(Qt5_PLUGINS_DIR "${Qt5_ROOT}/plugins")
|
set(Qt5_PLUGINS_DIR "${Qt5_ROOT}/plugins" CACHE STRING "")
|
||||||
endif()
|
endif()
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
list(APPEND MOC_INC_Qt5 "-F${Qt5_ROOT}/lib")
|
list(APPEND MOC_INC_Qt5 "-F${Qt5_ROOT}/lib")
|
||||||
endif()
|
endif()
|
||||||
set(Qt5_LANG_DIR ${Qt5_BIN}/../translations)
|
|
||||||
if (NOT _QT5_MSG)
|
if (NOT _QT5_MSG)
|
||||||
message(STATUS "Found Qt5: ${_Qt5_qmake} (version \"${Qt5_VERSION}\")")
|
message(STATUS "Found Qt5: ${_Qt5_qmake} (version \"${Qt5_VERSION}\")")
|
||||||
set(_QT5_MSG 1 CACHE BOOL "msg_qt5" FORCE)
|
set(_QT5_MSG 1 CACHE BOOL "msg_qt5" FORCE)
|
||||||
|
|||||||
Reference in New Issue
Block a user