File: cmake

package info (click to toggle)
tomlplusplus 3.3.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,184 kB
  • sloc: cpp: 35,145; ansic: 2,220; python: 983; makefile: 25; sh: 17
file content (21 lines) | stat: -rwxr-xr-x 401 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
#!/bin/sh

set -eu

cd "$AUTOPKGTEST_TMP"

cat <<EOF > CMakeLists.txt
cmake_minimum_required(VERSION 3.14)

project("tomlplusplus-autopkgtest")

find_package("tomlplusplus")

add_executable(simple_parser "$OLDPWD/examples/simple_parser.cpp")

target_link_libraries(simple_parser tomlplusplus::tomlplusplus)
EOF

cmake -B build
cmake --build build
./build/simple_parser "$OLDPWD/examples/example.toml"