|
@@ -2,12 +2,14 @@ cmake_minimum_required(VERSION 2.8.3)
|
|
project(desision)
|
|
project(desision)
|
|
|
|
|
|
## Compile as C++11, supported in ROS Kinetic and newer
|
|
## Compile as C++11, supported in ROS Kinetic and newer
|
|
-# add_compile_options(-std=c++11)
|
|
|
|
|
|
+add_compile_options(-std=c++11)
|
|
|
|
|
|
## Find catkin macros and libraries
|
|
## Find catkin macros and libraries
|
|
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
|
|
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
|
|
## is used, also find other catkin packages
|
|
## is used, also find other catkin packages
|
|
-find_package(catkin REQUIRED)
|
|
|
|
|
|
+find_package(catkin REQUIRED COMPONENTS
|
|
|
|
+ roscpp message_generation std_msgs rospy
|
|
|
|
+)
|
|
|
|
|
|
## System dependencies are found with CMake's conventions
|
|
## System dependencies are found with CMake's conventions
|
|
# find_package(Boost REQUIRED COMPONENTS system)
|
|
# find_package(Boost REQUIRED COMPONENTS system)
|
|
@@ -113,7 +115,8 @@ catkin_package(
|
|
## Your package locations should be listed before other locations
|
|
## Your package locations should be listed before other locations
|
|
include_directories(
|
|
include_directories(
|
|
# include
|
|
# include
|
|
-# ${catkin_INCLUDE_DIRS}
|
|
|
|
|
|
+ ${catkin_INCLUDE_DIRS}
|
|
|
|
+ /usr/local/include
|
|
)
|
|
)
|
|
|
|
|
|
## Declare a C++ library
|
|
## Declare a C++ library
|
|
@@ -200,3 +203,23 @@ include_directories(
|
|
|
|
|
|
## Add folders to be run by python nosetests
|
|
## Add folders to be run by python nosetests
|
|
# catkin_add_nosetests(test)
|
|
# catkin_add_nosetests(test)
|
|
|
|
+
|
|
|
|
+add_executable(decision
|
|
|
|
+ ../common/time.h
|
|
|
|
+ ../common/gloghelper.h
|
|
|
|
+ ../common/gloghelper.cpp
|
|
|
|
+ ../common/robotapp.h
|
|
|
|
+ ../common/robotapp.cpp
|
|
|
|
+ decision_app.cpp
|
|
|
|
+ decision.h
|
|
|
|
+ decision.cpp
|
|
|
|
+ )
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+target_link_libraries(decision
|
|
|
|
+ ${catkin_LIBRARIES}
|
|
|
|
+ glog
|
|
|
|
+ gflags
|
|
|
|
+ pcan
|
|
|
|
+ dl
|
|
|
|
+ protobuf)
|