Debian Codegraph @

debian/tests/docopt.cpp-examples

raw symbols SCIP
1 #!/bin/sh
2 # Copyright 2016 Ghislain Antony Vaillant
3 #
4 # This file is part of the packaging testsuite for docopt.cpp.
5
6 set -e
7
8 cp examples/naval_fate.cpp $AUTOPKGTEST_TMP
9 cd $AUTOPKGTEST_TMP
10
11 cat << EOF > CMakeLists.txt
12 cmake_minimum_required(VERSION 3.11)
13 project(docopt.cpp-examples)
14
15 find_package(docopt)
16 add_executable(naval_fate naval_fate.cpp)
17 target_link_libraries(naval_fate docopt)
18
19 EOF
20
21 mkdir build
22 cd build
23 cmake ..
24 cmake --build .
25 echo "=== help ==="
26 ./naval_fate --help
27 echo "=== version ==="
28 ./naval_fate --version
29 echo "=== run ==="
30 ./naval_fate ship new boaty