]> defiant.homedns.org Git - ros_roboint.git/blob - CMakeLists.txt
depend robo_explorer_hardware on messages
[ros_roboint.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8.3)
2 project(roboint)
3
4 ## Find catkin macros and libraries
5 ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
6 ## is used, also find other catkin packages
7 find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs message_generation urdf controller_manager)
8
9 ## System dependencies are found with CMake's conventions
10 # find_package(Boost REQUIRED COMPONENTS system)
11
12
13 ## Uncomment this if the package has a setup.py. This macro ensures
14 ## modules and global scripts declared therein get installed
15 ## See http://ros.org/doc/groovy/api/catkin/html/user_guide/setup_dot_py.html
16 # catkin_python_setup()
17
18 #######################################
19 ## Declare ROS messages and services ##
20 #######################################
21
22 ## Generate messages in the 'msg' folder
23 add_message_files(
24    FILES
25    Inputs.msg
26    Motor.msg
27    Output.msg
28 )
29
30 ## Generate services in the 'srv' folder
31 # add_service_files(
32 #   FILES
33 #   Service1.srv
34 #   Service2.srv
35 # )
36
37 ## Generate added messages and services with any dependencies listed here
38 generate_messages(
39   DEPENDENCIES
40   std_msgs
41   roboint
42 )
43
44 ###################################
45 ## catkin specific configuration ##
46 ###################################
47 ## The catkin_package macro generates cmake config files for your package
48 ## Declare things to be passed to dependent projects
49 ## LIBRARIES: libraries you create in this project that dependent projects also need
50 ## CATKIN_DEPENDS: catkin_packages dependent projects also need
51 ## DEPENDS: system dependencies of this project that dependent projects also need
52 catkin_package(
53 #  INCLUDE_DIRS include
54 #  LIBRARIES roboint
55    CATKIN_DEPENDS message_runtime roscpp rospy std_msgs
56 #  DEPENDS system_lib
57 )
58
59 ###########
60 ## Build ##
61 ###########
62
63 ## Specify additional locations of header files
64 ## Your package locations should be listed before other locations
65 include_directories(include
66   ${catkin_INCLUDE_DIRS}
67 )
68
69 ## Declare a cpp library
70 # add_library(roboint
71 #   src/${PROJECT_NAME}/roboint.cpp
72 # )
73
74 ## Declare a cpp executable
75 # add_executable(roboint_node src/roboint_node.cpp)
76 add_executable(libft_adapter src/libft_adapter.cpp)
77 add_executable(robo_explorer_hardware src/robo_explorer_hardware.cpp)
78
79 ## Add cmake target dependencies of the executable/library
80 ## as an example, message headers may need to be generated before nodes
81 add_dependencies(libft_adapter roboint_gencpp)
82 add_dependencies(robo_explorer_hardware roboint_gencpp)
83
84 ## Specify libraries to link a library or executable target against
85 # target_link_libraries(roboint_node
86 #   ${catkin_LIBRARIES}
87 # )
88 target_link_libraries(libft_adapter ${catkin_LIBRARIES} roboint)
89 target_link_libraries(robo_explorer_hardware ${catkin_LIBRARIES})
90
91 #############
92 ## Install ##
93 #############
94
95 # all install targets should use catkin DESTINATION variables
96 # See http://ros.org/doc/groovy/api/catkin/html/adv_user_guide/variables.html
97
98 ## Mark executable scripts (Python etc.) for installation
99 ## in contrast to setup.py, you can choose the destination
100 # install(PROGRAMS
101 #   scripts/my_python_script
102 #   DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
103 # )
104
105 ## Mark executables and/or libraries for installation
106 # install(TARGETS roboint roboint_node
107 #   ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
108 #   LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
109 #   RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
110 # )
111
112 ## Mark cpp header files for installation
113 # install(DIRECTORY include/${PROJECT_NAME}/
114 #   DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
115 #   FILES_MATCHING PATTERN "*.h"
116 #   PATTERN ".svn" EXCLUDE
117 # )
118
119 ## Mark other files for installation (e.g. launch and bag files, etc.)
120 # install(FILES
121 #   # myfile1
122 #   # myfile2
123 #   DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
124 # )
125
126 #############
127 ## Testing ##
128 #############
129
130 ## Add gtest based cpp test target and link libraries
131 # catkin_add_gtest(${PROJECT_NAME}-test test/test_roboint.cpp)
132 # if(TARGET ${PROJECT_NAME}-test)
133 #   target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
134 # endif()
135
136 ## Add folders to be run by python nosetests
137 # catkin_add_nosetests(test)