forked from ros/roslint
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
32 lines (26 loc) · 1019 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required(VERSION 2.8.3)
project(roscpplint)
find_package(catkin REQUIRED)
catkin_package(CFG_EXTRAS roscpplint-extras.cmake)
catkin_python_setup()
install(PROGRAMS scripts/cpplint scripts/pep8 scripts/test_wrapper
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY cmake
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
# Lint itself. This also serves as a smoke check of the cmake extras file.
# Please note that this complexity is due to self-checking. For typical usage, please
# see the ROS wiki: http://wiki.ros.org/roscpplint
if(CATKIN_ENABLE_TESTING)
set(extra "cmake/roscpplint-extras.cmake")
em_expand(${catkin_EXTRAS_DIR}/templates/cfg-extras.context.py.in
${CMAKE_CURRENT_BINARY_DIR}/${extra}.develspace.context.cmake.py
${CMAKE_CURRENT_SOURCE_DIR}/${extra}.em
${CMAKE_CURRENT_BINARY_DIR}/${extra})
include(${CMAKE_CURRENT_BINARY_DIR}/${extra})
roscpplint_python(
setup.py
src/roscpplint/cpplint_wrapper.py)
roscpplint_add_test()
endif()