File: cmake

package info (click to toggle)
zycore-c 1.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 732 kB
  • sloc: ansic: 5,492; cpp: 697; makefile: 22; sh: 12
file content (21 lines) | stat: -rw-r--r-- 395 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.13)

project("zycore-autopkgtest" LANGUAGES C)

find_package("zycore")

add_executable(main "${test_file}")
target_link_libraries(main Zycore::Zycore)
EOF

export CFLAGS='-Wall -Wextra -Wpedantic -Werror'

cmake -Dtest_file:FILEPATH="$OLDPWD/examples/String.c" -B build
cmake --build build