diff options
Diffstat (limited to 'pkgs/tools/nix/nixos-option/src/CMakeLists.txt')
-rw-r--r-- | pkgs/tools/nix/nixos-option/src/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/tools/nix/nixos-option/src/CMakeLists.txt b/pkgs/tools/nix/nixos-option/src/CMakeLists.txt new file mode 100644 index 0000000000000..9aee9e6ccadac --- /dev/null +++ b/pkgs/tools/nix/nixos-option/src/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required (VERSION 2.6) +project (nixos-option) + +set(NIX_DEV_INCLUDEPATH "" CACHE STRING "path to nix include directory") + +add_executable(nixos-option nixos-option.cc libnix-copy-paste.cc) +target_include_directories(nixos-option PUBLIC "${NIX_DEV_INCLUDEPATH}") +target_link_libraries(nixos-option PRIVATE -lnixmain -lnixexpr -lnixstore -lnixutil -lnixcmd) +target_compile_features(nixos-option PRIVATE cxx_std_20) + +install (TARGETS nixos-option DESTINATION bin) |