Files
sourcekit-lsp/Sources/BuildSystemIntegration/CMakeLists.txt
Alex Hoppen 5c60d1d39c Add a new test project type that uses a custom build server
This allows us to more easily test behavior for build servers that have different behavior than SwiftPM and compile commands without having to implement the build server in Python.
2025-03-05 23:54:32 -08:00

43 lines
1.2 KiB
CMake

add_library(BuildSystemIntegration STATIC
BuildSettingsLogger.swift
BuildSystemHooks.swift
BuildSystemManager.swift
BuildSystemManagerDelegate.swift
BuildSystemMessageDependencyTracker.swift
BuildTargetIdentifierExtensions.swift
BuiltInBuildSystem.swift
BuiltInBuildSystemAdapter.swift
CompilationDatabase.swift
CompilerCommandLineOption.swift
DetermineBuildSystem.swift
ExternalBuildSystemAdapter.swift
FallbackBuildSettings.swift
FileBuildSettings.swift
FixedCompilationDatabaseBuildSystem.swift
JSONCompilationDatabaseBuildSystem.swift
LegacyBuildServerBuildSystem.swift
MainFilesProvider.swift
SplitShellCommand.swift
SwiftPMBuildSystem.swift)
set_target_properties(BuildSystemIntegration PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
target_link_libraries(BuildSystemIntegration PUBLIC
BuildServerProtocol
LanguageServerProtocol
LanguageServerProtocolJSONRPC
SKLogging
SKOptions
LanguageServerProtocolExtensions
SourceKitD
SwiftExtensions
ToolchainRegistry
PackageModel
TSCBasic
Build
SourceKitLSPAPI)
target_link_libraries(BuildSystemIntegration PRIVATE
SKUtilities
TSCExtensions)