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

@ -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)