Fixed cmake install of binaries
This commit is contained in:
@ -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
|
||||
|
||||
@ -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})
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user