summaryrefslogtreecommitdiff
path: root/tests/conan/conanfile.py
blob: c3341f9a1b9b844a29846ec693f66e999aecf43f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
from conans import ConanFile, CMake, tools


class OpenCLHeadersTestConan(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)