1From 7f208aaf21aa468013fc41e67c32f6a6c8c08249 Mon Sep 17 00:00:00 2001
2From: Jappie Klooster <jappieklooster@hotmail.com>
3Date: Fri, 2 Apr 2021 16:01:05 -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 add them.
11---
12 CMakeLists.txt | 9 ++++++++-
13 1 file changed, 8 insertions(+), 1 deletion(-)
14
15diff --git a/CMakeLists.txt b/CMakeLists.txt
16index f9db618..425d391 100644
17--- a/CMakeLists.txt
18+++ b/CMakeLists.txt
19@@ -4,10 +4,17 @@ project(libevdevPlus)
20 set(SOURCE_FILES
21 evdevPlus.cpp evdevPlus.hpp CommonIncludes.hpp InputEvent.hpp Resource.cpp)
22
23+include(GNUInstallDirs)
24+
25 add_library(evdevPlus ${SOURCE_FILES})
26 target_include_directories(evdevPlus PUBLIC .)
27
28 add_executable(evdevPlus_test test.cpp)
29 target_link_libraries(evdevPlus_test evdevPlus)
30
31-configure_file(evdevPlus.pc.in evdevPlus.pc @ONLY)
32\ No newline at end of file
33+configure_file(evdevPlus.pc.in evdevPlus.pc @ONLY)
34+
35+install(TARGETS evdevPlus
36+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
37+install(FILES evdevPlus.hpp CommonIncludes.hpp InputEvent.hpp
38+ DESTINATION include/)
39--
402.29.2
41