|
1 |
| -# This file is managed by Conan, contents will be overwritten. |
2 |
| -# To keep your changes, remove these comment lines, but the plugin won't be able to modify your requirements |
3 |
| - |
4 | 1 | from conan import ConanFile
|
5 |
| -from conan.tools.cmake import cmake_layout, CMakeToolchain |
| 2 | +from conan.tools.cmake import cmake_layout, CMakeToolchain, CMakeDeps, CMake |
| 3 | + |
| 4 | +class msgpack23(ConanFile): |
| 5 | + name = "msgpack23" |
| 6 | + version = "1.0" |
| 7 | + |
| 8 | + license = "MIT" |
| 9 | + author = "Rene Windegger <[email protected]>" |
| 10 | + url = "https://github.com/rwindegger/msgpack23" |
| 11 | + description = "A modern, header-only C++ library for MessagePack serialization and deserialization." |
| 12 | + topics = ("msgpack", "serialization", "MessagePack") |
6 | 13 |
|
7 |
| -class ConanApplication(ConanFile): |
8 |
| - package_type = "application" |
9 | 14 | settings = "os", "compiler", "build_type", "arch"
|
10 |
| - generators = "CMakeDeps" |
| 15 | + |
| 16 | + exports_sources = ( "CMakeLists.txt", "include/*", "tests/*", "cmake/*" ) |
11 | 17 |
|
12 | 18 | def layout(self):
|
13 | 19 | cmake_layout(self)
|
14 | 20 |
|
15 | 21 | def generate(self):
|
| 22 | + deps = CMakeDeps(self) |
| 23 | + deps.generate() |
16 | 24 | tc = CMakeToolchain(self)
|
17 |
| - tc.user_presets_path = False |
18 | 25 | tc.generate()
|
19 | 26 |
|
| 27 | + def build(self): |
| 28 | + cmake = CMake(self) |
| 29 | + cmake.configure() |
| 30 | + cmake.build() |
| 31 | + |
| 32 | + def package(self): |
| 33 | + cmake = CMake(self) |
| 34 | + cmake.install() |
| 35 | + |
20 | 36 | def requirements(self):
|
21 | 37 | requirements = self.conan_data.get('requirements', [])
|
22 | 38 | for requirement in requirements:
|
|
0 commit comments