mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-09-08 14:24:46 -04:00
feat: Add RunQtCreator target
This commit is contained in:
@ -102,3 +102,20 @@ add_qtc_plugin(QodeAssist
|
|||||||
CodeHandler.hpp CodeHandler.cpp
|
CodeHandler.hpp CodeHandler.cpp
|
||||||
UpdateStatusWidget.hpp UpdateStatusWidget.cpp
|
UpdateStatusWidget.hpp UpdateStatusWidget.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
get_target_property(QtCreatorCorePath QtCreator::Core LOCATION)
|
||||||
|
find_program(QtCreatorExecutable
|
||||||
|
NAMES
|
||||||
|
qtcreator "Qt Creator"
|
||||||
|
PATHS
|
||||||
|
"${QtCreatorCorePath}/../../../bin"
|
||||||
|
"${QtCreatorCorePath}/../../../MacOS"
|
||||||
|
NO_DEFAULT_PATH
|
||||||
|
)
|
||||||
|
if (QtCreatorExecutable)
|
||||||
|
add_custom_target(RunQtCreator
|
||||||
|
COMMAND ${QtCreatorExecutable} -pluginpath $<TARGET_FILE_DIR:QodeAssist>
|
||||||
|
DEPENDS QodeAssist
|
||||||
|
)
|
||||||
|
set_target_properties(RunQtCreator PROPERTIES FOLDER "qtc_runnable")
|
||||||
|
endif()
|
||||||
|
Reference in New Issue
Block a user