mirror of
				https://github.com/Palm1r/QodeAssist.git
				synced 2025-10-31 16:25:26 -04:00 
			
		
		
		
	feat: Add RunQtCreator target
This commit is contained in:
		| @ -102,3 +102,20 @@ add_qtc_plugin(QodeAssist | ||||
|     CodeHandler.hpp CodeHandler.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