CMakeLists.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. add_library(ArgumentParser
  2. Completions/BashCompletionsGenerator.swift
  3. Completions/CompletionsGenerator.swift
  4. Completions/FishCompletionsGenerator.swift
  5. Completions/ZshCompletionsGenerator.swift
  6. "Parsable Properties/Argument.swift"
  7. "Parsable Properties/ArgumentDiscussion.swift"
  8. "Parsable Properties/ArgumentHelp.swift"
  9. "Parsable Properties/ArgumentVisibility.swift"
  10. "Parsable Properties/CompletionKind.swift"
  11. "Parsable Properties/Errors.swift"
  12. "Parsable Properties/Flag.swift"
  13. "Parsable Properties/NameSpecification.swift"
  14. "Parsable Properties/Option.swift"
  15. "Parsable Properties/OptionGroup.swift"
  16. "Parsable Types/AsyncParsableCommand.swift"
  17. "Parsable Types/CommandGroup.swift"
  18. "Parsable Types/CommandConfiguration.swift"
  19. "Parsable Types/EnumerableFlag.swift"
  20. "Parsable Types/ExpressibleByArgument.swift"
  21. "Parsable Types/ParsableArguments.swift"
  22. "Parsable Types/ParsableCommand.swift"
  23. Parsing/ArgumentDecoder.swift
  24. Parsing/ArgumentDefinition.swift
  25. Parsing/ArgumentSet.swift
  26. Parsing/CommandParser.swift
  27. Parsing/InputKey.swift
  28. Parsing/InputOrigin.swift
  29. Parsing/Name.swift
  30. Parsing/Parsed.swift
  31. Parsing/ParsedValues.swift
  32. Parsing/ParserError.swift
  33. Parsing/SplitArguments.swift
  34. Usage/DumpHelpGenerator.swift
  35. Usage/HelpCommand.swift
  36. Usage/HelpGenerator.swift
  37. Usage/MessageInfo.swift
  38. Usage/UsageGenerator.swift
  39. Utilities/CollectionExtensions.swift
  40. Utilities/Mutex.swift
  41. Utilities/Foundation.swift
  42. Utilities/Platform.swift
  43. Utilities/SequenceExtensions.swift
  44. Utilities/StringExtensions.swift
  45. Utilities/SwiftExtensions.swift
  46. Utilities/Tree.swift
  47. Validators/CodingKeyValidator.swift
  48. Validators/NonsenseFlagsValidator.swift
  49. Validators/ParsableArgumentsValidation.swift
  50. Validators/PositionalArgumentsValidator.swift
  51. Validators/UniqueNamesValidator.swift)
  52. # NOTE: workaround for CMake not setting up include flags yet
  53. set_target_properties(ArgumentParser PROPERTIES
  54. INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
  55. target_compile_options(ArgumentParser PRIVATE
  56. $<$<BOOL:${BUILD_TESTING}>:-enable-testing>)
  57. target_link_libraries(ArgumentParser PRIVATE
  58. ArgumentParserToolInfo)
  59. if(Foundation_FOUND)
  60. target_link_libraries(ArgumentParser PRIVATE
  61. Foundation)
  62. endif()
  63. _install_target(ArgumentParser)
  64. set_property(GLOBAL APPEND PROPERTY ArgumentParser_EXPORTS ArgumentParser)