Skip to content

Commit fd21426

Browse files
author
Davide Faconti
committed
fixing compilation of tests
1 parent ee91c11 commit fd21426

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*~
22
/CMakeLists.txt.user
3+
build*

.travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ matrix:
2323

2424
before_install:
2525
- sudo apt-get update && sudo apt-get --reinstall install -qq build-essential
26+
# see motivation here https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
27+
- sudo apt-get --reinstall install -qq libgtest-dev cmake
28+
- cd /usr/src/gtest
29+
- sudo cmake CMakeLists.txt
30+
- sudo make
31+
- sudo cp *.a /usr/lib
32+
33+
# copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder
34+
sudo cp *.a /usr/lib
2635

2736
install:
2837
- if [ "$ROS_DISTRO" != "none" ]; then git clone https://github.com/ros-industrial/industrial_ci.git .ci_config; fi

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project(behavior_tree_core)
33

44
set(CMAKE_BUILD_TYPE Release)
55

6-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 -Werror=return-type")
6+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 -pthread -Werror=return-type")
77

88
#############################################################
99
# http://answers.ros.org/question/230877/optionally-build-a-package-with-catkin/

0 commit comments

Comments
 (0)