-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dtoverlay, vcgencmd, vcmailbox: fix build locations
Use the install location variables provided by GNUInstallDirs.
- Loading branch information
Showing
3 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
include(GNUInstallDirs) | ||
|
||
#set project name | ||
project(vcgencmd) | ||
|
||
add_executable(vcgencmd vcgencmd.c) | ||
install(TARGETS vcgencmd RUNTIME DESTINATION bin) | ||
install(FILES vcgencmd.1 DESTINATION man/man1) | ||
install(TARGETS vcgencmd RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
install(FILES vcgencmd.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
include(GNUInstallDirs) | ||
|
||
#set project name | ||
project(vcmailbox) | ||
|
||
add_executable(vcmailbox vcmailbox.c) | ||
target_link_libraries(vcmailbox) | ||
|
||
install(TARGETS vcmailbox RUNTIME DESTINATION bin) | ||
install(FILES vcmailbox.1 DESTINATION man/man1) | ||
install(FILES vcmailbox.7 raspiotp.7 raspirev.7 DESTINATION man/man7) | ||
install(TARGETS vcmailbox RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
install(FILES vcmailbox.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) | ||
install(FILES vcmailbox.7 raspiotp.7 raspirev.7 DESTINATION ${CMAKE_INSTALL_MANDIR}/man7) |