2019-09-06 00:29:01 +00:00
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (nixos-option)
|
|
|
|
|
2023-06-12 22:32:52 +00:00
|
|
|
set(NIX_DEV_INCLUDEPATH "" CACHE STRING "path to nix include directory")
|
|
|
|
|
2019-09-06 00:29:01 +00:00
|
|
|
add_executable(nixos-option nixos-option.cc libnix-copy-paste.cc)
|
2023-06-12 22:32:52 +00:00
|
|
|
target_include_directories(nixos-option PUBLIC "${NIX_DEV_INCLUDEPATH}")
|
|
|
|
target_link_libraries(nixos-option PRIVATE -lnixmain -lnixexpr -lnixstore -lnixutil -lnixcmd)
|
2023-07-11 23:30:07 +00:00
|
|
|
target_compile_features(nixos-option PRIVATE cxx_std_20)
|
2019-09-06 00:29:01 +00:00
|
|
|
|
|
|
|
install (TARGETS nixos-option DESTINATION bin)
|