forked from qt-creator/qt-creator
CMake build: Fix copying of external tools
Fixes: QTCREATORBUG-24509 Change-Id: Ic19adf009bba326a2b9e59fe561e4021bbf21412 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1,13 +1,20 @@
|
||||
set(EXT_TOOLS_DIR "${IDE_DATA_PATH}/externaltools")
|
||||
|
||||
install(FILES lrelease.xml lupdate.xml qmlscene.xml qmlviewer.xml
|
||||
set(tools lrelease.xml lupdate.xml qmlscene.xml qmlviewer.xml)
|
||||
|
||||
if (WIN32)
|
||||
list(APPEND tools notepad_win.xml)
|
||||
elseif (APPLE)
|
||||
list(APPEND tools vi_mac.xml)
|
||||
else()
|
||||
list(APPEND tools vi.xml)
|
||||
endif()
|
||||
|
||||
qtc_copy_to_builddir(copy_src_share_to_builddir
|
||||
FILES ${tools}
|
||||
DESTINATION "${EXT_TOOLS_DIR}"
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
install(FILES notepad_win.xml DESTINATION "${EXT_TOOLS_DIR}")
|
||||
elseif (APPLE)
|
||||
install(FILES vi_mac.xml DESTINATION "${EXT_TOOLS_DIR}")
|
||||
else()
|
||||
install(FILES vi.xml DESTINATION "${EXT_TOOLS_DIR}")
|
||||
endif()
|
||||
install(FILES ${tools}
|
||||
DESTINATION "${EXT_TOOLS_DIR}"
|
||||
)
|
||||
|
Reference in New Issue
Block a user