Files
conan-center-index/recipes/samarium/all/test_package/conanfile.py
strangeQuark1041 e57ec1710c (#11063) samarium: add recipe
* add library: samarium/1.0.0

* cleanup

* add library: samarium/1.0.0

* fixes

* conanfile.py: use defaults for SFML

* all/conanfile.py: use defaults for SFML

* remove upstream std::execution TBB dependency

* check compiler versions

* upstream: lower CMake min version to 3.15

* config.yml: remove extra newline

* upstream changes

* add cpp_info names

* Update recipes/samarium/all/CMakeLists.txt

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* conanfile.py: change topic to cpp20

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* conanfile.py: change cpp_info

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* test_package/CMakeLists.txt: don't use CONAN_PKG

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* fix package()

* add dependency: range-v3

* upstream: removeconan.cmake usage, refactor cmake install

* fix package_info

* use old CONAN_PKG instead of find_package CONFIG

* conanfile.py: bump range version to 0.12.0

* upstream changes

* simplify package_info

* lower CMake min version to 3.15

* cleanup

* upstream fixes

* upstream: CMake: enable WINDOWS_EXPORT_ALL_SYMBOLS

* test_package: use cmake_find_package_multi

* CMake: bump min req to 3.15

* Simplify compiler version checking

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* upstream changes

* remove unnecessary copy()

Co-authored-by: Uilian Ries <uilianries@gmail.com>
2022-07-01 17:28:04 +02:00

18 lines
471 B
Python

from conans import ConanFile, CMake, tools
import os
class TestPackageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake", "cmake_find_package_multi"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
if not tools.cross_building(self):
bin_path = os.path.join("bin", "test_package")
self.run(bin_path, run_environment=True)