File: modify-fakenect-install.patch

package info (click to toggle)
libfreenect 1%3A0.1.2%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,700 kB
  • sloc: ansic: 6,092; cs: 2,060; cpp: 1,896; python: 948; ruby: 873; java: 722; xml: 40; makefile: 28; sh: 27
file content (27 lines) | stat: -rw-r--r-- 900 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Modify how fakenect is installed
 Install fakenect/README into share/doc as README.fakenect,
 Rename record into fakenect-record
Forwarded: No
Author: arnebe <arne@alamut.de>, Nicolas Bourdaud <nicolas.bourdaud@gmail.com> 
Last-Update: 2012-01-128

--- a/fakenect/CMakeLists.txt
+++ b/fakenect/CMakeLists.txt
@@ -12,9 +12,9 @@
 install (TARGETS fakenect
   DESTINATION "${PROJECT_LIBRARY_INSTALL_DIR}/fakenect")
 
-add_executable(record record.c)
-target_link_libraries(record freenect m)
-install (TARGETS record
+add_executable(fakenect-record record.c)
+target_link_libraries(fakenect-record freenect m)
+install (TARGETS fakenect-record
   DESTINATION bin)
 
 CONFIGURE_FILE("fakenect.sh.in"
@@ -23,3 +23,4 @@
 install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/fakenect.sh
   DESTINATION bin
   RENAME fakenect)
+INSTALL(FILES "README" DESTINATION "share/doc/" RENAME "README.fakenect")