mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-05-28 03:10:28 -04:00
feat: Add RunQtCreator target
This commit is contained in:
parent
9d40e8ca25
commit
7d06ab04dc
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user