Skip to content

Commit b1781d2

Browse files
author
Thomas Witte
committed
interactive_script baut mit colcon
1 parent 9520a74 commit b1781d2

5 files changed

Lines changed: 23 additions & 44 deletions

File tree

CMakeLists.txt

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ find_package(catkin REQUIRED COMPONENTS
2121

2222
## System dependencies are found with CMake's conventions
2323
find_package(Qt5 COMPONENTS Core Widgets WebEngineWidgets REQUIRED)
24-
24+
find_package(MiniLua REQUIRED)
2525

2626
## Uncomment this if the package has a setup.py. This macro ensures
2727
## modules and global scripts declared therein get installed
2828
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
29-
catkin_python_setup()
29+
# catkin_python_setup()
3030

3131
################################################
3232
## Declare ROS messages, services and actions ##
@@ -112,7 +112,7 @@ catkin_package(
112112
# INCLUDE_DIRS include
113113
LIBRARIES ${PROJECT_NAME}
114114
CATKIN_DEPENDS roscpp rqt_gui_cpp
115-
# DEPENDS system_lib
115+
# DEPENDS MiniLua
116116
)
117117

118118
###########
@@ -146,29 +146,18 @@ set(interactive_script_plugin_UIS
146146
qt5_wrap_cpp(interactive_script_plugin_MOCS ${interactive_script_plugin_HDRS})
147147
qt5_wrap_ui(interactive_script_plugin_UIS_H ${interactive_script_plugin_UIS})
148148

149-
include(ExternalProject)
150-
151-
152-
ExternalProject_Add(minilua
153-
PREFIX "minilua"
154-
SOURCE_DIR ${interactive_script_SOURCE_DIR}/MiniLua
155-
INSTALL_DIR ${CATKIN_DEVEL_PREFIX}
156-
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CATKIN_DEVEL_PREFIX}
157-
BUILD_ALWAYS true
158-
)
159-
add_library(MiniLua SHARED IMPORTED)
160-
set_target_properties(MiniLua PROPERTIES
161-
IMPORTED_LOCATION "${CATKIN_DEVEL_PREFIX}/lib/libMiniLua.so")
162-
163149
## Specify additional locations of header files
164150
## Your package locations should be listed before other locations
165151
include_directories(
166152
include
167-
${CMAKE_CURRENT_BINARY_DIR}/..
168-
MiniLua/include
169153
${catkin_INCLUDE_DIRS}
170154
)
171155

156+
get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
157+
foreach(dir ${dirs})
158+
message(STATUS "dir='${dir}'")
159+
endforeach()
160+
172161
## Declare a C++ library
173162
add_library(${PROJECT_NAME}
174163
${interactive_script_plugin_SRCS}
@@ -220,18 +209,16 @@ target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
220209
# )
221210

222211
## Mark executables and/or libraries for installation
223-
# install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_node
224-
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
225-
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
226-
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
227-
# )
212+
install(TARGETS ${PROJECT_NAME}
213+
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
214+
)
228215

229216
## Mark cpp header files for installation
230-
# install(DIRECTORY include/${PROJECT_NAME}/
231-
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
232-
# FILES_MATCHING PATTERN "*.h"
233-
# PATTERN ".svn" EXCLUDE
234-
# )
217+
install(DIRECTORY include/${PROJECT_NAME}/
218+
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
219+
FILES_MATCHING PATTERN "*.h"
220+
PATTERN ".svn" EXCLUDE
221+
)
235222

236223
## Mark other files for installation (e.g. launch and bag files, etc.)
237224
# install(FILES
@@ -240,6 +227,11 @@ target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
240227
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
241228
# )
242229

230+
install(FILES
231+
plugin.xml
232+
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
233+
)
234+
243235
#############
244236
## Testing ##
245237
#############

MiniLua

Submodule MiniLua deleted from a7439bd

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<depend>quad_common_utils</depend>
5757
<depend>actionlib</depend>
5858
<depend>hector_uav_msgs</depend>
59+
<depend>MiniLua</depend>
5960
<depend>tf2</depend>
6061
<depend>tf2_ros</depend>
6162

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<library path="lib/libinteractive_script">
1+
<library path="libinteractive_script/lib/libinteractive_script">
22
<class name="interactive_script_plugin/InteractiveScriptGui" type="interactive_script_plugin::InteractiveScriptGui" base_class_type="rqt_gui_cpp::Plugin">
33
<description>
44
An example C++ GUI plugin to create a great user interface.

setup.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)