about summary refs log tree commit diff
path: root/third_party/nix/src/nix-daemon/CMakeLists.txt
blob: 63125a9b26b228ec7e4ddcdfea4e917446f80683 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- mode: cmake; -*-

# The nix-daemon is the binary running the gRPC server component to
# which other components of Nix talk to perform store and builder
# operations.

add_executable(nix-daemon)
include_directories(${PROJECT_BINARY_DIR}) # for config.h
set_property(TARGET nix-daemon PROPERTY CXX_STANDARD 17)

pkg_check_modules(systemd REQUIRED)

target_sources(nix-daemon
  PRIVATE
    nix-daemon-proto.hh
    nix-daemon-proto.cc
    nix-daemon.cc
)

target_link_libraries(nix-daemon
  nixutil
  nixstore
  nixmain
  absl::flags
  absl::flags_parse
  systemd
)

install(TARGETS nix-daemon DESTINATION bin)