
#===============#
#     arshd     #
#===============#

set(LSP_SRV arshd)
add_library(arshd_static STATIC
        transport.cpp
        server.cpp
        lsp.cpp
        analyzer.cpp
        archive.cpp
        source.cpp
        index.cpp
        indexer.cpp
        client.cpp
        driver.cpp
        symbol.cpp
        rename.cpp
        worker.cpp
        semantic_token.cpp
        pass.cpp
        extra_checker.cpp
        registration.cpp
        context.cpp
        analyzer_worker.cpp
        hasher.cpp
)
target_link_libraries(arshd_static arsh_static jsonrpc uri directive)

add_executable(${LSP_SRV} main.cpp)
target_link_libraries(${LSP_SRV} arshd_static arsh_static jsonrpc uri process highlighter Threads::Threads)

install(TARGETS ${LSP_SRV}
        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})