init
This commit is contained in:
commit
0e5218513e
4 changed files with 128 additions and 0 deletions
11
CMakeLists.txt
Normal file
11
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
cmake_minimum_required(VERSION 3.9)
|
||||
project(nix-scope-plugin)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(NIX_EXPR REQUIRED IMPORTED_TARGET nix-expr)
|
||||
|
||||
add_library(nix-scope-plugin MODULE scope.cc)
|
||||
target_link_libraries(nix-scope-plugin PkgConfig::NIX_EXPR)
|
||||
set_target_properties(nix-scope-plugin PROPERTIES PREFIX "lib")
|
||||
|
||||
install(TARGETS nix-scope-plugin DESTINATION lib/nix/plugins)
|
||||
Loading…
Add table
Add a link
Reference in a new issue