cmake: Make install create /run/g13d

CMake still doesn't have a way to set mode and owner/group at install time
atomically, so we have to fall back and call install directly in a script.
This commit is contained in:
June Tate-Gans 2021-04-25 12:16:47 -05:00
parent 8e8638d08f
commit 05c64f62ed

View File

@ -23,3 +23,7 @@ target_link_libraries(g13d
${libusb-1.0_LIBRARIES}) ${libusb-1.0_LIBRARIES})
install(TARGETS g13d pbm2lpbm RUNTIME) install(TARGETS g13d pbm2lpbm RUNTIME)
install(CODE "
execute_process(COMMAND install -d -m 0660 -o root -g input /run/g13d)
message(STATUS \"Install: /run/g13d\")
")