townengine/conanfile.py

22 lines
501 B
Python
Raw Permalink Normal View History

2024-07-08 00:44:20 +00:00
from conan import ConanFile
from conan.tools.cmake import cmake_layout, CMake
class TownEngine(ConanFile):
2024-07-08 00:44:20 +00:00
settings = 'os', 'compiler', 'build_type', 'arch'
generators = 'CMakeToolchain', 'CMakeDeps'
def requirements(self):
self.requires('sdl/2.30.7')
2024-07-08 00:44:20 +00:00
def build_requirements(self):
self.tool_requires('cmake/3.22.6')
def layout(self):
cmake_layout(self)
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()