Idea: Add new keywords to add_executable() to specify that the target belongs in sbin or libexec
Continued discussion from !2558 (merged).
We want to make it easy for users to specify, perhaps in add_executable()
, that a target belongs in sbin
or libexec
, and providing this functionality in the install()
command. It might look something like:
add_executable(foo TYPES GUI ADMIN SOURCES foo.c)
add_executable(bar TYPES LIBEXEC SOURCES bar.c)
add_executable(baz TYPES ADMIN BUNDLE SOURCES baz.c)
install(TARGETS foo bar baz
SBIN DESTINATION sbin
LIBEXEC DESTINATION libexec/fooproject
)
Edited by Kyle Edwards