make gtest optional, #3837
This commit is contained in:
parent
65e13ba9fc
commit
0c8ca2eae9
|
@ -35,9 +35,11 @@ catkin_project(roslib
|
|||
)
|
||||
|
||||
#integration tests
|
||||
find_package(GTest)
|
||||
if(GTEST_FOUND)
|
||||
add_gtest(${PROJECT_NAME}-utest test/utest.cpp)
|
||||
target_link_libraries(${PROJECT_NAME}-utest roslib ${Boost_LIBRARIES} ${ROS_LIBRARIES})
|
||||
|
||||
add_gtest(${PROJECT_NAME}-utest test/utest.cpp)
|
||||
target_link_libraries(${PROJECT_NAME}-utest roslib ${Boost_LIBRARIES} ${ROS_LIBRARIES})
|
||||
|
||||
add_gtest(${PROJECT_NAME}-test_package test/package.cpp)
|
||||
target_link_libraries(${PROJECT_NAME}-test_package roslib ${ROS_LIBRARIES})
|
||||
add_gtest(${PROJECT_NAME}-test_package test/package.cpp)
|
||||
target_link_libraries(${PROJECT_NAME}-test_package roslib ${ROS_LIBRARIES})
|
||||
endif(GTEST_FOUND)
|
||||
|
|
Loading…
Reference in New Issue