Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from conans import ConanFile, CMake, tools
- class CatchConan(ConanFile):
- name = "easy_profiler"
- version = "2.1.0"
- settings = "os", "compiler", "build_type", "arch"
- options = {"shared": [True, False]}
- default_options = "shared=False"
- generators = "cmake"
- short_paths = True
- def requirements(self):
- try:
- user = self.user
- channel = self.channel
- except:
- user = "master"
- channel = "turboit"
- #self.requires("qt/5.13.1@%s/%s" % (user, channel))
- def source(self):
- self.run("git clone https://github.com/yse/easy_profiler.git")
- self.run("cd easy_profiler && git checkout develop")
- def build(self):
- cmake = CMake(self)
- #cmake.definitions ["CMAKE_PREFIX_PATH"] = self.deps_cpp_info["qt"].rootpath
- #cmake.configure(source_folder="easy_profiler")
- cmake.build()
- cmake.install()
- def package_info(self):
- self.libs = ['easy_profiler']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement