Skip to content
Snippets Groups Projects
Commit ff17f80e authored by Thomas Moulard's avatar Thomas Moulard
Browse files

Remove .sh extension to installed shell scripts.

The old behavior triggers a lintian error.
parent 470262e2
No related branches found
No related tags found
No related merge requests found
#
# Copyright
#
#
# Copyright
#
### tools
SET(tools
......@@ -8,11 +8,11 @@ SET(tools
)
### Configure shell launch script
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/sot-shell-plugin.sh.cmake
${${PROJECT_NAME}_BINARY_DIR}/tools/sot-shell-plugin.sh)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/sot-shell-plugin.cmake
${${PROJECT_NAME}_BINARY_DIR}/tools/sot-shell-plugin)
INSTALL(
FILES
${${PROJECT_NAME}_BINARY_DIR}/tools/sot-shell-plugin.sh
${${PROJECT_NAME}_BINARY_DIR}/tools/sot-shell-plugin
DESTINATION
bin
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
......@@ -25,19 +25,19 @@ FOREACH(tool_name ${tools})
ADD_EXECUTABLE(${EXECUTABLE_NAME}
${tool_name}.cpp)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}/../include
${CMAKE_CURRENT_SOURCE_DIR}/../include
)
LINK_DIRECTORIES(${${PROJECT_NAME}_BINARY_DIR}/lib)
TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME}
${PROJECT_NAME})
IF(UNIX)
TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} dl)
ENDIF(UNIX)
INSTALL(TARGETS ${tool_name} DESTINATION bin)
ENDFOREACH(tool_name)
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment