Revision 06d6a491 examples/yarp_icub/CMakeLists.txt
examples/yarp_icub/CMakeLists.txt | ||
---|---|---|
30 | 30 |
################# |
31 | 31 |
## style guide ## |
32 | 32 |
################# |
33 |
set(ENABLE_CPPLINT 1) |
|
34 |
include(${CMAKE_CURRENT_SOURCE_DIR}/../../stylecheck/CpplintWrapper.cmake) |
|
35 |
CPPLINT_RECURSIVE(cpplint_include |
|
36 |
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
37 |
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
38 |
${CMAKE_CURRENT_BINARY_DIR}/include) |
|
39 |
CPPLINT_RECURSIVE(cpplint_src |
|
40 |
${CMAKE_CURRENT_SOURCE_DIR}/src |
|
41 |
${CMAKE_CURRENT_SOURCE_DIR}/src |
|
42 |
${CMAKE_CURRENT_BINARY_DIR}/src) |
|
43 |
add_dependencies(${MAIN} cpplint_src cpplint_include) |
|
44 |
|
|
33 |
SET(CPPLINT_CMAKE ${CMAKE_CURRENT_SOURCE_DIR}/../../stylecheck/CpplintWrapper.cmake) |
|
34 |
|
|
35 |
if(EXISTS "${CPPLINT_CMAKE}") |
|
36 |
set(ENABLE_CPPLINT 1) |
|
37 |
include(${CPPLINT_CMAKE}) |
|
38 |
CPPLINT_RECURSIVE(cpplint_include |
|
39 |
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
40 |
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
41 |
${CMAKE_CURRENT_BINARY_DIR}/include) |
|
42 |
CPPLINT_RECURSIVE(cpplint_src |
|
43 |
${CMAKE_CURRENT_SOURCE_DIR}/src |
|
44 |
${CMAKE_CURRENT_SOURCE_DIR}/src |
|
45 |
${CMAKE_CURRENT_BINARY_DIR}/src) |
|
46 |
add_dependencies(${MAIN} cpplint_src cpplint_include) |
|
47 |
else () |
|
48 |
message(WARNING "Could not find cpplint cmake file. Will not do code stylecheck!") |
|
49 |
endif () |
|
45 | 50 |
#workaround for qtcreator ide integration. do not remove! |
46 | 51 |
file(GLOB_RECURSE NODE_DUMMY_TARGETS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h *.cfg *.yaml *.xml *.launch) |
47 | 52 |
add_custom_target(_dummy_target SOURCES ${NODE_DUMMY_TARGETS}) |
Also available in: Unified diff