mirror of
https://github.com/ladislav-zezula/StormLib
synced 2026-08-15 10:29:04 -04:00
2. Apply the same logic to use system libs for libtommath (as previously for zlib and bzip). 3. Add conan support and a build job to test it. 4. Some CMake modernization. 5. I noticed Cmake has some conditionals for BSD so let's also make do test builds on FreeBSD and not brek anything there.
17 lines
No EOL
398 B
Python
17 lines
No EOL
398 B
Python
from conan import ConanFile
|
|
from conan.tools.cmake import CMakeToolchain
|
|
|
|
class StormLib(ConanFile):
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
generators = "CMakeDeps"
|
|
|
|
requires = (
|
|
"zlib/1.3.1",
|
|
"bzip2/1.0.8",
|
|
"libtommath/1.3.0",
|
|
)
|
|
|
|
def generate(self):
|
|
tc = CMakeToolchain(self)
|
|
tc.user_presets_path = False
|
|
tc.generate() |