Test on Travis CI

This will allow us to test on macOS in the future.
This commit is contained in:
heinrich5991 2017-03-21 13:35:51 +01:00 committed by Learath2
parent 93ac8a97b1
commit e7d8c44bcc
2 changed files with 19 additions and 1 deletions

17
.travis.yml Normal file
View file

@ -0,0 +1,17 @@
language: c++
sudo: false
dist: trusty
addons:
apt:
packages:
- libfreetype6-dev
- libsdl2-dev
script:
- mkdir build
- cd build
- cmake ..
- make everything
env:
global:
- CFLAGS="-Wdeclaration-after-statement -Werror"
- CXXFLAGS="-Werror"

View file

@ -2,7 +2,8 @@ find_package(PkgConfig QUIET)
pkg_check_modules(PC_FREETYPE freetype2)
set_extra_dirs(FREETYPE freetype)
find_path(FREETYPE_INCLUDEDIR freetype/config/ftheader.h
find_path(FREETYPE_INCLUDEDIR
NAMES config/ftheader.h freetype/config/ftheader.h
PATH_SUFFIXES freetype2
HINTS ${PC_FREETYPE_INCLUDEDIR} ${PC_FREETYPE_INCLUDE_DIRS}
PATHS ${EXTRA_FREETYPE_INCLUDEDIR}