File tree Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ install(FILES dtmerge.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
21
21
22
22
add_executable (dtoverlay dtoverlay_main.c utils.c )
23
23
target_link_libraries (dtoverlay dtovl )
24
- install (TARGETS dtoverlay RUNTIME DESTINATION bin )
25
- install (FILES dtoverlay.1 DESTINATION man /man1 )
24
+ install (TARGETS dtoverlay RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
25
+ install (FILES dtoverlay.1 DESTINATION ${CMAKE_INSTALL_MANDIR} /man1 )
26
26
27
27
add_custom_command (TARGET dtoverlay POST_BUILD COMMAND ln;-sf;dtoverlay;dtparam )
28
- install (FILES ${CMAKE_CURRENT_BINARY_DIR} /dtparam DESTINATION bin )
29
- install (FILES dtparam.1 DESTINATION man /man1 )
28
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR} /dtparam DESTINATION ${CMAKE_INSTALL_BINDIR} )
29
+ install (FILES dtparam.1 DESTINATION ${CMAKE_INSTALL_MANDIR} /man1 )
30
30
31
31
set (DTOVERLAY_SCRIPTS dtoverlay-pre dtoverlay-post )
32
- install (PROGRAMS ${DTOVERLAY_SCRIPTS} DESTINATION bin )
32
+ install (PROGRAMS ${DTOVERLAY_SCRIPTS} DESTINATION ${CMAKE_INSTALL_BINDIR} )
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.10 )
2
2
3
+ include (GNUInstallDirs )
4
+
5
+ #set project name
6
+ project (vcgencmd )
7
+
3
8
add_executable (vcgencmd vcgencmd.c )
4
- install (TARGETS vcgencmd RUNTIME DESTINATION bin )
5
- install (FILES vcgencmd.1 DESTINATION man /man1 )
9
+ install (TARGETS vcgencmd RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
10
+ install (FILES vcgencmd.1 DESTINATION ${CMAKE_INSTALL_MANDIR} /man1 )
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.10 )
2
2
3
+ include (GNUInstallDirs )
4
+
5
+ #set project name
6
+ project (vcmailbox )
7
+
3
8
add_executable (vcmailbox vcmailbox.c )
4
9
target_link_libraries (vcmailbox )
5
10
6
- install (TARGETS vcmailbox RUNTIME DESTINATION bin )
7
- install (FILES vcmailbox.1 DESTINATION man /man1 )
8
- install (FILES vcmailbox.7 raspiotp.7 raspirev.7 DESTINATION man /man7 )
11
+ install (TARGETS vcmailbox RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
12
+ install (FILES vcmailbox.1 DESTINATION ${CMAKE_INSTALL_MANDIR} /man1 )
13
+ install (FILES vcmailbox.7 raspiotp.7 raspirev.7 DESTINATION ${CMAKE_INSTALL_MANDIR} /man7 )
You can’t perform that action at this time.
0 commit comments