Преглед изворни кода

修改CMakelists.txt中问题

corvin пре 5 година
родитељ
комит
5921a02187
2 измењених фајлова са 11 додато и 20 уклоњено
  1. 10 19
      catkin_ws/src/snowboy_wakeup/CMakeLists.txt
  2. 1 1
      catkin_ws/src/snowboy_wakeup/package.xml

+ 10 - 19
catkin_ws/src/snowboy_wakeup/CMakeLists.txt

@@ -12,17 +12,9 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)
 
 find_package(BLAS)
 
-# ------------------------------------------------------------------------------------------------
-#                                     ROS MESSAGES AND SERVICES
-# ------------------------------------------------------------------------------------------------
-
-# Generate services
-# add_service_files(
-#    FILES
-#    service1.srv
-#    ...
-# )
-
+# ------------------------------------------------------
+#               ROS MESSAGES AND SERVICES
+# ------------------------------------------------------
 # Generate added messages and services with any dependencies listed here
 # generate_messages(
 #    DEPENDENCIES
@@ -31,14 +23,13 @@ find_package(BLAS)
 # )
 
 #add dynamic reconfigure api
-#find_package(catkin REQUIRED dynamic_reconfigure)
 generate_dynamic_reconfigure_options(
     cfg/SnowboyReconfigure.cfg
 )
 
-# ------------------------------------------------------------------------------------------------
-#                                          CATKIN EXPORT
-# ------------------------------------------------------------------------------------------------
+# --------------------------------------------------------
+#                    CATKIN EXPORT
+# --------------------------------------------------------
 catkin_package(
 #  INCLUDE_DIRS include
 #  LIBRARIES hotword_detector
@@ -46,9 +37,9 @@ catkin_package(
 #  DEPENDS system_lib
 )
 
-# ------------------------------------------------------------------------------------------------
-#                                              BUILD
-# ------------------------------------------------------------------------------------------------
+# ---------------------------------------------------------
+#                        BUILD
+# ---------------------------------------------------------
 include_directories(
     include
     3rdparty
@@ -68,7 +59,7 @@ target_link_libraries(hotword_detector
     ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/snowboy/lib/libsnowboy-detect.a
     ${catkin_LIBRARIES}
     ${BLAS_LIBRARIES}
-    -lwringPi
+    -lwiringPi
 )
 
 add_executable(hotword_detector_node

+ 1 - 1
catkin_ws/src/snowboy_wakeup/package.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <package>
   <name>snowboy_wakeup</name>
-  <version>0.0.0</version>
+  <version>0.1.0</version>
   <description>snowboy hotword detector</description>
 
   <maintainer email="corvin_zhang@corvin.cn">corvin</maintainer>