Fixed cmake install of binaries

This commit is contained in:
2024-07-12 10:48:47 -04:00
parent b5970fe94d
commit 307bd3b811
7 changed files with 17 additions and 0 deletions

View File

@ -12,9 +12,14 @@ foreach(SUB_DIR ${SUB_DIRS})
endforeach()
# installs
file(GLOB BIN_PROGS "bin/*")
file(GLOB BIN_SCRIPTS "bin-scripts/*")
file(GLOB SBIN_SCRIPTS "sbin-scripts/*")
install(FILES ${BIN_PROGS}
DESTINATION bin
PERMISSIONS WORLD_EXECUTE WORLD_READ OWNER_WRITE
)
install(FILES ${BIN_SCRIPTS}
DESTINATION bin
PERMISSIONS WORLD_EXECUTE WORLD_READ OWNER_WRITE

View File

@ -19,6 +19,8 @@ set(SRCS
CanTxGenerator.cpp
)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../sbin)
# executables
add_executable(${TARGET} ${TARGET}.cpp ${SRCS})

View File

@ -21,6 +21,8 @@ set(SRCS
)
# executables
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../sbin)
add_executable(${TARGET} ${TARGET}.cpp ${SRCS})
install(TARGETS ${TARGET} DESTINATION sbin)

View File

@ -17,6 +17,8 @@ set(SRCS
)
# executables
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../sbin)
add_executable(${TARGET} ${TARGET}.cpp ${SRCS})
install(TARGETS ${TARGET} DESTINATION sbin)

View File

@ -17,6 +17,8 @@ set(SRCS
)
# executables
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../sbin)
add_executable(${TARGET} ${TARGET}.cpp ${SRCS})
install(TARGETS ${TARGET} DESTINATION sbin)

View File

@ -17,6 +17,8 @@ set(SRCS
)
# executables
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../sbin)
add_executable(${TARGET} ${TARGET}.cpp ${SRCS})
install(TARGETS ${TARGET} DESTINATION sbin)

View File

@ -17,6 +17,8 @@ set(SRCS
)
# executables
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../sbin)
add_executable(${TARGET} ${TARGET}.cpp ${SRCS})
install(TARGETS ${TARGET} DESTINATION sbin)