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