Skip to content
This repository was archived by the owner on Feb 21, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/tools/basic_component_py/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@

configure_file(
basic_component_py.in
basic_component_py
@ONLY
)

## INSTALL ##

# install Launcher
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/basic_component_py
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
DESTINATION bin
)

# Install .py
FILE(GLOB_RECURSE HEADERS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*py)
FOREACH(header ${HEADERS_FILES})
Expand Down
3 changes: 3 additions & 0 deletions src/tools/basic_component_py/basic_component_py.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

python @CMAKE_INSTALL_PREFIX@/share/jderobot/python/basic_component_py/basic_component.py $*