Add conanfile.py, publish conan package
This commit is contained in:
parent
09104524b5
commit
3f7cb8182e
1 changed files with 20 additions and 0 deletions
20
conanfile.py
Normal file
20
conanfile.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
from conan import ConanFile
|
||||
from conan.tools.files import copy
|
||||
|
||||
|
||||
class ECMSConan(ConanFile):
|
||||
name = "ecms"
|
||||
version = "1.0"
|
||||
# No settings/options are necessary, this is header only
|
||||
exports_sources = "src/EC/*"
|
||||
no_copy_source = True
|
||||
|
||||
def package(self):
|
||||
# This will also copy the "include" folder
|
||||
copy(self, "*.hpp", self.source_folder, self.package_folder)
|
||||
|
||||
def package_info(self):
|
||||
# For header-only packages, libdirs and bindirs are not used
|
||||
# so it's recommended to set those as empty.
|
||||
self.cpp_info.bindirs = []
|
||||
self.cpp_info.libdirs = []
|
Loading…
Reference in a new issue