7
0
mirror of https://github.com/Minres/conan-recipes.git synced 2025-07-01 15:33:27 +02:00

Updated conanfiles to work with release 1.0 of conan.io.

This commit is contained in:
2018-02-22 20:35:06 +00:00
parent 2f922aae4f
commit 895abb8766
11 changed files with 188 additions and 78 deletions

View File

@ -26,8 +26,9 @@ conan_basic_setup()''')
def build(self):
cmake = CMake(self, parallel=True)
self.run('cmake seasocks %s' % cmake.command_line)
self.run("cmake --build . --target install %s" % cmake.build_config)
cmake.configure(source_folder="seasocks")
cmake.build()
cmake.install()
#def package(self):
# nothing to do here now

View File

@ -3,13 +3,17 @@ import os
class SeasocksTestConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False]}
default_options = "shared=True"
generators = "cmake"
build_requires = "Catch/1.9.2@uilianries/stable"
def configure(self):
self.options["Seasocks"].shared = self.options.shared
def build(self):
cmake = CMake(self)
# Current dir is "test_package/build/<build_id>" and CMakeLists.txt is in "test_package"
cmake.configure(source_dir=self.conanfile_directory, build_dir="./")
cmake.configure()
cmake.build()
def imports(self):