forked from zacharykratochvil/respeaker_ros
-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
43 lines (35 loc) · 1.13 KB
/
CMakeLists.txt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
cmake_minimum_required(VERSION 2.8.3)
project(respeaker_ros)
find_package(catkin REQUIRED COMPONENTS
dynamic_reconfigure)
if ($ENV{ROS_PYTHON_VERSION} EQUAL 2)
find_package(catkin_virtualenv REQUIRED)
else()
message(WARNING "catkin_virtualenv does not currently support python3"
"you need to install python dependencies manually by running:\n"
"roscd respeaker_ros && pip install -r requirements.txt")
endif()
generate_dynamic_reconfigure_options(
cfg/Respeaker.cfg)
catkin_package()
if (catkin_virtualenv_FOUND)
catkin_generate_virtualenv()
endif()
catkin_install_python(
PROGRAMS
scripts/respeaker_node.py
scripts/speech_to_text.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(DIRECTORY scripts launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS)
install(FILES requirements.txt
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
if (CATKIN_ENABLE_TESTING)
if ($ENV{ROS_PYTHON_VERSION} EQUAL 2)
catkin_add_nosetests(test/test_installed.py
DEPENDENCIES ${PROJECT_NAME}_generate_virtualenv)
else()
catkin_add_nosetests(test/test_installed.py)
endif()
endif()