File: cmake

package info (click to toggle)
zydis 4.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,920 kB
  • sloc: ansic: 20,258; python: 2,769; makefile: 57; sh: 13
file content (22 lines) | stat: -rwxr-xr-x 409 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -eu

cd "$AUTOPKGTEST_TMP"

cat <<'EOF' > CMakeLists.txt
cmake_minimum_required(VERSION 3.13)

project("zydis-autopkgtest" LANGUAGES C)

find_package("zydis")

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

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

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