File: cmake

package info (click to toggle)
libsfml 2.4.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,332 kB
  • ctags: 5,618
  • sloc: cpp: 27,752; ansic: 5,219; objc: 653; sh: 213; xml: 30; makefile: 12
file content (23 lines) | stat: -rw-r--r-- 427 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# autopkgtest check: Build and run a simple program against SFML

set -e

# Require $ADTTMP for temporary build files
if [ -z "$ADTTMP" ]
then
	echo "Required envvar \"$ADTTMP\"is not set" >&2
	exit 1
fi

cp debian/tests/CMakeLists.txt debian/tests/sfml_test.cpp "$ADTTMP"
cd "$ADTTMP"

# Run CMake and build program
CFLAGS='-Wall -Werror' cmake .
make VERBOSE=1
echo "build: OK"

# Run it
./sfml_test
echo "run: OK"