mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:48:38 +02:00
Adding ability for QML/JS file to be visible in QtCreator. Also changed files will be installed to destination
This commit is contained in:
parent
8c773483cf
commit
2d2b2094fd
2 changed files with 22 additions and 0 deletions
|
@ -206,6 +206,17 @@ foreach(CUSTOM_MACRO ${HIFI_CUSTOM_MACROS})
|
||||||
include(${CUSTOM_MACRO})
|
include(${CUSTOM_MACRO})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
file(GLOB_RECURSE JS_SRC scripts/*.js)
|
||||||
|
add_custom_target(js SOURCES ${JS_SRC})
|
||||||
|
|
||||||
|
if (UNIX)
|
||||||
|
install(
|
||||||
|
DIRECTORY "${CMAKE_SOURCE_DIR}/scripts"
|
||||||
|
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/interface
|
||||||
|
COMPONENT ${CLIENT_COMPONENT}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (ANDROID)
|
if (ANDROID)
|
||||||
file(GLOB ANDROID_CUSTOM_MACROS "cmake/android/*.cmake")
|
file(GLOB ANDROID_CUSTOM_MACROS "cmake/android/*.cmake")
|
||||||
foreach(CUSTOM_MACRO ${ANDROID_CUSTOM_MACROS})
|
foreach(CUSTOM_MACRO ${ANDROID_CUSTOM_MACROS})
|
||||||
|
|
|
@ -63,6 +63,17 @@ qt5_wrap_ui(QT_UI_HEADERS "${QT_UI_FILES}")
|
||||||
# add them to the interface source files
|
# add them to the interface source files
|
||||||
set(INTERFACE_SRCS ${INTERFACE_SRCS} "${QT_UI_HEADERS}" "${QT_RESOURCES}")
|
set(INTERFACE_SRCS ${INTERFACE_SRCS} "${QT_UI_HEADERS}" "${QT_RESOURCES}")
|
||||||
|
|
||||||
|
file(GLOB_RECURSE QML_SRC resources/qml/*.qml resources/qml/*.js)
|
||||||
|
add_custom_target(qml SOURCES ${QML_SRC})
|
||||||
|
|
||||||
|
if (UNIX)
|
||||||
|
install(
|
||||||
|
DIRECTORY "${CMAKE_SOURCE_DIR}/interface/resources/qml"
|
||||||
|
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/resources
|
||||||
|
COMPONENT ${CLIENT_COMPONENT}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# translation disabled until we strip out the line numbers
|
# translation disabled until we strip out the line numbers
|
||||||
# set(QM ${TARGET_NAME}_en.qm)
|
# set(QM ${TARGET_NAME}_en.qm)
|
||||||
# set(TS ${TARGET_NAME}_en.ts)
|
# set(TS ${TARGET_NAME}_en.ts)
|
||||||
|
|
Loading…
Reference in a new issue