Revision 0c8d22a5 CMakeLists.txt

View differences:

CMakeLists.txt
83 83
## Your package locations should be listed before other locations
84 84
include_directories(BEFORE ${Boost_INCLUDE_DIRS} ${REFLEXXES_INCLUDE_DIRS})
85 85
include_directories(BEFORE include)
86
include_directories(BEFORE include/humotion)
86

  
87 87
#make sure to use ros messages from current build
88 88
include_directories(BEFORE ${CATKIN_DEVEL_PREFIX}/include)
89

  
89 90
#this should be appended:
90 91
include_directories(${catkin_INCLUDE_DIRS})
91
#link_directories (${Boost_LIBRARY_DIRS} ${REFLEXXES_LIBRARY_DIRS} ${catkin_LIBRARY_DIRS})
92

  
93
#####################
94
# PLEASE DO NOT REMOVE THIS! This is a hack necessary for qtcreator to show cmake header files in the project view!
95
file(GLOB DUMMY_HEADER_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} include/humotion/*.h  include/humotion/client/*.h  include/humotion/server/*.h srv/*.srv msg/*.msg etc/*)
96 92

  
93
#link_directories (${Boost_LIBRARY_DIRS} ${REFLEXXES_LIBRARY_DIRS} ${catkin_LIBRARY_DIRS})
97 94

  
98 95
## Declare a cpp library
99 96
add_library(humotion
......
120 117
    src/server/neck_motion_generator.cpp
121 118
    src/timestamp.cpp
122 119
    src/timestamped_list.cpp
123
    ${DUMMY_HEADER_LIST}
124 120
)
125 121

  
126 122
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
......
186 182

  
187 183
#finally build (some) examples
188 184
#add_subdirectory(./examples)
185

  
186

  
187
#################
188
## style guide ##
189
#################
190
set(ENABLE_CPPLINT 1)
191
include(${CMAKE_CURRENT_SOURCE_DIR}/stylecheck/CpplintWrapper.cmake)
192
CPPLINT_RECURSIVE(cpplint_include
193
  ${CMAKE_CURRENT_SOURCE_DIR}/include
194
  ${CMAKE_CURRENT_SOURCE_DIR}/include
195
  ${CMAKE_CURRENT_BINARY_DIR}/include)
196
CPPLINT_RECURSIVE(cpplint_src
197
  ${CMAKE_CURRENT_SOURCE_DIR}/src
198
  ${CMAKE_CURRENT_SOURCE_DIR}/src
199
  ${CMAKE_CURRENT_BINARY_DIR}/src)
200
add_dependencies(humotion cpplint_src cpplint_include)
201

  
202
#workaround for qtcreator ide integration. do not remove!
203
file(GLOB_RECURSE NODE_DUMMY_TARGETS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h *.cfg *.yaml *.xml *.launch)
204
add_custom_target(_dummy_target SOURCES ${NODE_DUMMY_TARGETS})

Also available in: Unified diff