1 From 7f208aaf21aa468013fc41e67c32f6a6c8c08249 Mon Sep 17 00:00:00 2001
2 From: Jappie Klooster <jappieklooster@hotmail.com>
3 Date: Fri, 2 Apr 2021 16:01:05 -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 add them.
12 CMakeLists.txt | 9 ++++++++-
13 1 file changed, 8 insertions(+), 1 deletion(-)
15 diff --git a/CMakeLists.txt b/CMakeLists.txt
16 index f9db618..425d391 100644
19 @@ -4,10 +4,17 @@ project(libevdevPlus)
21 evdevPlus.cpp evdevPlus.hpp CommonIncludes.hpp InputEvent.hpp Resource.cpp)
23 +include(GNUInstallDirs)
25 add_library(evdevPlus ${SOURCE_FILES})
26 target_include_directories(evdevPlus PUBLIC .)
28 add_executable(evdevPlus_test test.cpp)
29 target_link_libraries(evdevPlus_test evdevPlus)
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)
35 +install(TARGETS evdevPlus
36 + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
37 +install(FILES evdevPlus.hpp CommonIncludes.hpp InputEvent.hpp
38 + DESTINATION include/)