MCPcopy Create free account
hub / github.com/Kitware/CMake / GetProjectCommands

Function GetProjectCommands

Source/cmCommands.cxx:225–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void GetProjectCommands(cmState* state)
226{
227 state->AddBuiltinCommand("add_compile_definitions",
228 cmAddCompileDefinitionsCommand);
229 state->AddBuiltinCommand("add_custom_command", cmAddCustomCommandCommand);
230 state->AddBuiltinCommand("add_custom_target", cmAddCustomTargetCommand);
231 state->AddBuiltinCommand("add_definitions", cmAddDefinitionsCommand);
232 state->AddBuiltinCommand("add_dependencies", cmAddDependenciesCommand);
233 state->AddBuiltinCommand("add_executable", cmAddExecutableCommand);
234 state->AddBuiltinCommand("add_library", cmAddLibraryCommand);
235 state->AddBuiltinCommand("add_subdirectory", cmAddSubDirectoryCommand);
236 state->AddBuiltinCommand("add_test", cmAddTestCommand);
237 state->AddBuiltinCommand("build_command", cmBuildCommand);
238 state->AddBuiltinCommand("create_test_sourcelist", cmCreateTestSourceList);
239 state->AddBuiltinCommand("define_property", cmDefinePropertyCommand);
240 state->AddBuiltinCommand("enable_language", cmEnableLanguageCommand);
241 state->AddBuiltinCommand("enable_testing", cmEnableTestingCommand);
242 state->AddBuiltinCommand("get_source_file_property",
243 cmGetSourceFilePropertyCommand);
244 state->AddBuiltinCommand("get_target_property", cmGetTargetPropertyCommand);
245 state->AddBuiltinCommand("get_test_property", cmGetTestPropertyCommand);
246 state->AddBuiltinCommand("include_directories", cmIncludeDirectoryCommand);
247 state->AddBuiltinCommand("include_regular_expression",
248 cmIncludeRegularExpressionCommand);
249 state->AddBuiltinCommand("install", cmInstallCommand);
250 state->AddBuiltinCommand("install_files", cmInstallFilesCommand);
251 state->AddBuiltinCommand("install_targets", cmInstallTargetsCommand);
252 state->AddBuiltinCommand("link_directories", cmLinkDirectoriesCommand);
253 state->AddBuiltinCommand("project", cmProjectCommand);
254 state->AddBuiltinCommand("set_source_files_properties",
255 cmSetSourceFilesPropertiesCommand);
256 state->AddBuiltinCommand("set_target_properties",
257 cmSetTargetPropertiesCommand);
258 state->AddBuiltinCommand("set_tests_properties",
259 cmSetTestsPropertiesCommand);
260 state->AddBuiltinCommand("subdirs", cmSubdirCommand);
261 state->AddBuiltinCommand("target_compile_definitions",
262 cmTargetCompileDefinitionsCommand);
263 state->AddBuiltinCommand("target_compile_features",
264 cmTargetCompileFeaturesCommand);
265 state->AddBuiltinCommand("target_compile_options",
266 cmTargetCompileOptionsCommand);
267 state->AddBuiltinCommand("target_include_directories",
268 cmTargetIncludeDirectoriesCommand);
269 state->AddBuiltinCommand("target_link_libraries",
270 cmTargetLinkLibrariesCommand);
271 state->AddBuiltinCommand("target_link_options", cmTargetLinkOptionsCommand);
272 state->AddBuiltinCommand("target_sources", cmTargetSourcesCommand);
273 state->AddBuiltinCommand("try_compile", cmTryCompileCommand);
274 state->AddBuiltinCommand("try_run", cmTryRunCommand);
275 state->AddBuiltinCommand("target_precompile_headers",
276 cmTargetPrecompileHeadersCommand);
277
278#if !defined(CMAKE_BOOTSTRAP)
279 state->AddBuiltinCommand("add_compile_options", cmAddCompileOptionsCommand);
280 state->AddBuiltinCommand("aux_source_directory",
281 cmAuxSourceDirectoryCommand);
282 state->AddBuiltinCommand("export", cmExportCommand);

Callers 1

AddProjectCommandsMethod · 0.85

Calls 2

AddBuiltinCommandMethod · 0.80
AddRemovedCommandMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…