-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (21 loc) · 1.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
build_all: build_debug build_release
build_ros2_si_interface:
xterm -e "(cd ${CURDIR}/src/sirose/msg/ros2_si_interface;. ~/ros2_galactic/install/local_setup.bash; colcon build --packages-select ros2_si_interface)"
#. ~/ros2_galactic/install/local_setup.bash
#colcon build --packages-select ros2_si_interface
build_debug:
xterm -e "(cd ${CURDIR}/src/sirose/msg/ros2_si_interface;. ~/ros2_galactic/install/local_setup.bash; colcon build --packages-select ros2_si_interface)"
cmake -S .. -B ${CURDIR}/build/Debug -D CMAKE_BUILD_TYPE=Debug
cmake --build ${CURDIR}/build/Debug --target si_test_application -j 8
debug: build_debug
xterm -hold -e "(cd ${CURDIR};. ~/ros2_galactic/install/local_setup.bash; . ${CURDIR}/src/sirose/msg/ros2_si_interface/install/local_setup.bash; export ROS_DOMAIN_ID=1; ./build/Debug/si_test_application)"
build_release:
cmake -S .. -B ${CURDIR}/build/Release -D CMAKE_BUILD_TYPE=Release
cmake --build ${CURDIR}/build/Release --target si_test_application -j 8
release: build_release
xterm -e "(cd ${CURDIR};. ~/ros2_galactic/install/local_setup.bash;./build/Release/si_test_application)"
clean_all: clean_debug clean_release
clean_debug:
(cd ${CURDIR}/build; rm -rf Debug)
clean_release:
(cd ${CURDIR}/build; rm -rf Release)