Files
conan-center-index/recipes/wavelet_buffer/all/test_v1_package/conanfile.py
Victor a076f033c9 (#13722) Add wavelet_buffer v0.4.0
* Add wavelet_buffer v0.4.0

* Fix for linter

* Fix for linter

* Fix for linter

* Fix fPic

* Fix fPic

* Fix import

* Fix compiler version check

* Fix for conan hook

* Bump compilers version

* Black reformat

* Remove build_type set

* Move CmakeDeps

* Add can_run()

* Add test_v1_package

* Refactor requirements set

* Change msvc compiler version

* Change default options

* Remove unnecessary deletions

* Refactor and fix test_package

* Exclude shared linking

* Remove rm import

* Fix url attribute

* Change compiler check shared exclusion

* Fix fPIC deletion

* Add more validation for cimg options

* Fixes for cpp_info, compiler versions, etc
2022-12-09 13:25:40 +01:00

20 lines
540 B
Python

from conans import ConanFile, CMake
from conan.tools.build import cross_building
import os
# legacy validation with Conan 1.x
class TestPackageV1Conan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "cmake", "cmake_find_package_multi"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
if not cross_building(self):
bin_path = os.path.join("bin", "test_package")
self.run(bin_path, run_environment=True)