1
0

cmake.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. Language: CMake
  3. Description: CMake is an open-source cross-platform system for build automation.
  4. Author: Igor Kalnitsky <[email protected]>
  5. Website: http://kalnitsky.org/
  6. */
  7. function(hljs) {
  8. return {
  9. aliases: ['cmake.in'],
  10. case_insensitive: true,
  11. keywords: {
  12. keyword:
  13. 'add_custom_command add_custom_target add_definitions add_dependencies ' +
  14. 'add_executable add_library add_subdirectory add_test aux_source_directory ' +
  15. 'break build_command cmake_minimum_required cmake_policy configure_file ' +
  16. 'create_test_sourcelist define_property else elseif enable_language enable_testing ' +
  17. 'endforeach endfunction endif endmacro endwhile execute_process export find_file ' +
  18. 'find_library find_package find_path find_program fltk_wrap_ui foreach function ' +
  19. 'get_cmake_property get_directory_property get_filename_component get_property ' +
  20. 'get_source_file_property get_target_property get_test_property if include ' +
  21. 'include_directories include_external_msproject include_regular_expression install ' +
  22. 'link_directories load_cache load_command macro mark_as_advanced message option ' +
  23. 'output_required_files project qt_wrap_cpp qt_wrap_ui remove_definitions return ' +
  24. 'separate_arguments set set_directory_properties set_property ' +
  25. 'set_source_files_properties set_target_properties set_tests_properties site_name ' +
  26. 'source_group string target_link_libraries try_compile try_run unset variable_watch ' +
  27. 'while build_name exec_program export_library_dependencies install_files ' +
  28. 'install_programs install_targets link_libraries make_directory remove subdir_depends ' +
  29. 'subdirs use_mangled_mesa utility_source variable_requires write_file ' +
  30. 'qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or ' +
  31. 'equal less greater strless strgreater strequal matches'
  32. },
  33. contains: [
  34. {
  35. className: 'variable',
  36. begin: '\\${', end: '}'
  37. },
  38. hljs.HASH_COMMENT_MODE,
  39. hljs.QUOTE_STRING_MODE,
  40. hljs.NUMBER_MODE
  41. ]
  42. };
  43. }