First version of Conan recipe

This commit is contained in:
Torfinn Berset
2019-01-31 13:50:14 +01:00
parent 2c88f70a20
commit cd1db241ad
4 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 2.8.12)
project(TinyAesPackageTest C)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
add_executable(example ../test.c)
target_link_libraries(example ${CONAN_LIBS})

17
test_package/conanfile.py Normal file
View File

@@ -0,0 +1,17 @@
from conans import ConanFile, CMake, tools
import os
class TinyAesCTestConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
if not tools.cross_building(self.settings):
os.chdir("bin")
self.run(".%sexample" % os.sep)