File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ We provide a list of getters for you.
2727cmake .is_cmake_project () -- return if current project is a cmake project
2828cmake .has_cmake_preset () -- return if there exists cmake presets configuration
2929cmake .get_build_target () -- return current build target
30+ cmake .get_build_target_path () -- reurn full path of current build target
3031cmake .get_launch_target () -- return current launch target
32+ cmake .get_launch_target_path () -- return full path of current launch target
3133cmake .get_launch_args () -- return args used by current launch target
3234cmake .get_build_type () -- return current build type
3335cmake .get_kit () -- return current using kit
Original file line number Diff line number Diff line change @@ -1026,10 +1026,22 @@ function cmake.get_build_target()
10261026 return config .build_target
10271027end
10281028
1029+ function cmake .get_build_target_path ()
1030+ local result = config :get_build_target ()
1031+ local target_path = result .data
1032+ return target_path
1033+ end
1034+
10291035function cmake .get_launch_target ()
10301036 return config .launch_target
10311037end
10321038
1039+ function cmake .get_launch_target_path ()
1040+ local result = config :get_launch_target ()
1041+ local target_path = result .data
1042+ return target_path
1043+ end
1044+
10331045function cmake .get_model_info ()
10341046 return config :get_code_model_info ()
10351047end
You can’t perform that action at this time.
0 commit comments