File: test_installed_version.bash

package info (click to toggle)
magic-enum 0.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,296 kB
  • sloc: cpp: 19,139; sh: 32; xml: 16; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 617 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
rm -rf ./build
rm -rf ./build2
rm -rf ./build3
rm -rf ./install_dir/
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release --log-level=DEBUG -DCMAKE_INSTALL_PREFIX=install_dir
cmake --build ./build -j$(nproc)
cmake --install ./build/ --prefix ./install_dir
CMAKE_PREFIX_PATH="./install_dir" cmake -S. -Bbuild2 -DMAGIC_ENUM_OPT_TEST_INSTALLED_VERSION=1 --log-level=DEBUG
cmake --build build2 --config Debug -j$(nproc) --verbose 
CMAKE_PREFIX_PATH="./install_dir" cmake -S. -Bbuild3 -DMAGIC_ENUM_OPT_TEST_INSTALLED_VERSION_PKGCONFIG=1 --log-level=DEBUG
cmake --build build3 --config Debug -j$(nproc) --verbose