Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 40 lines 1.2 kB view raw
1From 265e406e254c8d84016b12b344d8df71d1765dd1 Mon Sep 17 00:00:00 2001 2From: Jappie Klooster <jappieklooster@hotmail.com> 3Date: Fri, 2 Apr 2021 16:33:18 -0400 4Subject: [PATCH] Add cmake install directives 5 6To make nix builds work, it expect a make install command to 7be available. 8Adding these directives seems to fix the build. 9 10If it's no trouble to you, please consider adding them. 11--- 12 CMakeLists.txt | 8 ++++++++ 13 1 file changed, 8 insertions(+) 14 15diff --git a/CMakeLists.txt b/CMakeLists.txt 16index cbfc9c1..948c432 100644 17--- a/CMakeLists.txt 18+++ b/CMakeLists.txt 19@@ -7,6 +7,8 @@ set(SOURCE_FILES 20 uInput.cpp uInputSetup.cpp uInputResource.cpp 21 uInput.hpp CommonIncludes.hpp uInputSetup.hpp) 22 23+include(GNUInstallDirs) 24+ 25 add_library(uInputPlus ${SOURCE_FILES}) 26 target_include_directories(uInputPlus PUBLIC .) 27 28@@ -15,3 +17,9 @@ target_link_libraries(uInputPlus_test uInputPlus) 29 30 configure_file(uInputPlus.pc.in uInputPlus.pc @ONLY) 31 32+ 33+install(TARGETS uInputPlus 34+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) 35+install(FILES uInput.hpp CommonIncludes.hpp uInputSetup.hpp 36+ DESTINATION include/) 37+ 38-- 392.29.2 40