diff --git a/CMakeUserPresets.json b/CMakeUserPresets.json new file mode 100644 index 0000000..71aeace --- /dev/null +++ b/CMakeUserPresets.json @@ -0,0 +1,9 @@ +{ + "version": 4, + "vendor": { + "conan": {} + }, + "include": [ + "build/Release/generators/CMakePresets.json" + ] +} \ No newline at end of file diff --git a/conanfile.py b/conanfile.py index 7cf3666..89cf71b 100644 --- a/conanfile.py +++ b/conanfile.py @@ -4,9 +4,25 @@ from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps class mxmlRecipe(ConanFile): name = "mxml" version = "4.0.4" + description = "Mini-XML - Tiny XML Parsing Library v4" + homepage = "https://github.com/michaelrsweet/mxml.git" + url = "https://github.com/michaelrsweet/mxml.git" + topics = ("xml") + package_type = "library" settings = "os", "compiler", "build_type", "arch" + options = { "shared": [True, False] } + default_options = { "shared": False } + + @property + def _msbuild_configuration(self): + return "Debug" if self.settings.build_type == "Debug" else "Release" + + def generate(self): + tc = CMakeToolchain(self) + tc.generate() + def layout(self): cmake_layout(self)