Skip to content

Commit

Permalink
Merge pull request #28 from ros/include_gtest
Browse files Browse the repository at this point in the history
Include gtest source directly
  • Loading branch information
trainman419 committed Jul 29, 2014
2 parents b7273e3 + 9f7ecc1 commit 5a4320b
Show file tree
Hide file tree
Showing 8 changed files with 57,373 additions and 6 deletions.
7 changes: 4 additions & 3 deletions diagnostic_aggregator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ catkin_package(DEPENDS diagnostic_msgs pluginlib roscpp rospy xmlrpcpp
find_package(Boost REQUIRED COMPONENTS system regex)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})

include_directories(include ${catkin_INCLUDE_DIRS})
include_directories(include ${catkin_INCLUDE_DIRS} gtest-1.6.0/include)

add_library(${PROJECT_NAME}
src/status_item.cpp
Expand All @@ -33,8 +33,9 @@ target_link_libraries(aggregator_node ${catkin_LIBRARIES}
)

# Analyzer loader allows other users to test that Analyzers load
add_executable(analyzer_loader test/analyzer_loader.cpp)
target_link_libraries(analyzer_loader diagnostic_aggregator gtest)
add_executable(analyzer_loader test/analyzer_loader.cpp
gtest-1.6.0/gtest-all.cc)
target_link_libraries(analyzer_loader diagnostic_aggregator)

if(CATKIN_ENABLE_TESTING)
add_rostest(test/launch/test_agg.launch)
Expand Down
28 changes: 28 additions & 0 deletions diagnostic_aggregator/gtest-1.6.0/COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Copyright 2008, Google Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading

0 comments on commit 5a4320b

Please sign in to comment.