changed to conan

This commit is contained in:
2025-03-14 10:47:21 +01:00
parent 6c3dc79f37
commit 0d99c5aa35
6 changed files with 721 additions and 7 deletions

28
conanfile.py Normal file
View File

@ -0,0 +1,28 @@
# This file is managed by Conan, contents will be overwritten.
# To keep your changes, remove these comment lines, but the plugin won't be able to modify your requirements
from conan import ConanFile
from conan.tools.cmake import cmake_layout, CMakeToolchain
class ConanApplication(ConanFile):
package_type = "application"
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps"
def layout(self):
cmake_layout(self)
def generate(self):
tc = CMakeToolchain(self)
tc.user_presets_path = False
tc.cache_variables["CMAKE_FIND_LIBRARY_SUFFIXES"] = ".a;.lib" # Prefer static libraries
tc.cache_variables["CMAKE_LINK_SEARCH_START_STATIC"] = "ON"
tc.cache_variables["CMAKE_LINK_SEARCH_END_STATIC"] = "ON"
tc.generate()
def requirements(self):
requirements = self.conan_data.get('requirements', [])
for requirement in requirements:
self.requires(requirement)
def configure(self):
self.options["*"].shared = False