Skip to content

Commit

Permalink
fixing compilation of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Faconti committed Apr 19, 2018
1 parent ee91c11 commit fd21426
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*~
/CMakeLists.txt.user
build*
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ matrix:

before_install:
- sudo apt-get update && sudo apt-get --reinstall install -qq build-essential
# see motivation here https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
- sudo apt-get --reinstall install -qq libgtest-dev cmake
- cd /usr/src/gtest
- sudo cmake CMakeLists.txt
- sudo make
- sudo cp *.a /usr/lib

# copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder
sudo cp *.a /usr/lib

install:
- if [ "$ROS_DISTRO" != "none" ]; then git clone https://github.com/ros-industrial/industrial_ci.git .ci_config; fi
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(behavior_tree_core)

set(CMAKE_BUILD_TYPE Release)

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

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

0 comments on commit fd21426

Please sign in to comment.