]> defiant.homedns.org Git - ros_roboint.git/blob - CMakeLists.txt
fix velocity message in robo_explorer
[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)
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 )
42
43 ###################################
44 ## catkin specific configuration ##
45 ###################################
46 ## The catkin_package macro generates cmake config files for your package
47 ## Declare things to be passed to dependent projects
48 ## LIBRARIES: libraries you create in this project that dependent projects also need
49 ## CATKIN_DEPENDS: catkin_packages dependent projects also need
50 ## DEPENDS: system dependencies of this project that dependent projects also need
51 catkin_package(
52 #  INCLUDE_DIRS include
53 #  LIBRARIES roboint
54    CATKIN_DEPENDS message_runtime roscpp rospy std_msgs
55 #  DEPENDS system_lib
56 )
57
58 ###########
59 ## Build ##
60 ###########
61
62 ## Specify additional locations of header files
63 ## Your package locations should be listed before other locations
64 include_directories(include
65   ${catkin_INCLUDE_DIRS}
66 )
67
68 ## Declare a cpp library
69 # add_library(roboint
70 #   src/${PROJECT_NAME}/roboint.cpp
71 # )
72
73 ## Declare a cpp executable
74 # add_executable(roboint_node src/roboint_node.cpp)
75 add_executable(libft_adapter src/libft_adapter.cpp)
76
77 ## Add cmake target dependencies of the executable/library
78 ## as an example, message headers may need to be generated before nodes
79 add_dependencies(libft_adapter roboint_gencpp)
80
81 ## Specify libraries to link a library or executable target against
82 # target_link_libraries(roboint_node
83 #   ${catkin_LIBRARIES}
84 # )
85 target_link_libraries(libft_adapter ${catkin_LIBRARIES} roboint)
86
87 #############
88 ## Install ##
89 #############
90
91 # all install targets should use catkin DESTINATION variables
92 # See http://ros.org/doc/groovy/api/catkin/html/adv_user_guide/variables.html
93
94 ## Mark executable scripts (Python etc.) for installation
95 ## in contrast to setup.py, you can choose the destination
96 # install(PROGRAMS
97 #   scripts/my_python_script
98 #   DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
99 # )
100
101 ## Mark executables and/or libraries for installation
102 # install(TARGETS roboint roboint_node
103 #   ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
104 #   LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
105 #   RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
106 # )
107
108 ## Mark cpp header files for installation
109 # install(DIRECTORY include/${PROJECT_NAME}/
110 #   DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
111 #   FILES_MATCHING PATTERN "*.h"
112 #   PATTERN ".svn" EXCLUDE
113 # )
114
115 ## Mark other files for installation (e.g. launch and bag files, etc.)
116 # install(FILES
117 #   # myfile1
118 #   # myfile2
119 #   DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
120 # )
121
122 #############
123 ## Testing ##
124 #############
125
126 ## Add gtest based cpp test target and link libraries
127 # catkin_add_gtest(${PROJECT_NAME}-test test/test_roboint.cpp)
128 # if(TARGET ${PROJECT_NAME}-test)
129 #   target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
130 # endif()
131
132 ## Add folders to be run by python nosetests
133 # catkin_add_nosetests(test)