Modifications suggested by conan team.

This commit is contained in:
dimitri 2017-07-24 07:17:37 +02:00
parent 37857b02fe
commit bb63aa9e9b
4 changed files with 15 additions and 8 deletions

View File

@ -16,3 +16,4 @@ conanfile.pyc
conaninfo.txt conaninfo.txt
conanbuildinfo.txt conanbuildinfo.txt
conanbuildinfo.cmake conanbuildinfo.cmake
!FindGLM.cmake

View File

@ -0,0 +1,10 @@
FIND_PATH(
GLM_INCLUDE_DIR
NAMES
glm
PATHS
include)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLM REQUIRED_VARS GLM_INCLUDE_DIR)

View File

@ -8,11 +8,11 @@ class GlmConan(ConanFile):
url="https://github.com/g-truc/glm" url="https://github.com/g-truc/glm"
description="OpenGL Mathematics (GLM)" description="OpenGL Mathematics (GLM)"
license = "https://github.com/g-truc/glm/blob/manual/copying.txt" license = "https://github.com/g-truc/glm/blob/manual/copying.txt"
exports = ["FindGLM.cmake", "lib_licenses/*", os.sep.join([".", "..", "..", "*"])] exports_sources = ["FindGLM.cmake", os.sep.join([".", "..", "..", "*"])]
exports = "lib_licenses/*"
def build(self): def build(self):
self.output.warn("No compilation necessary for GLM") self.output.info("No compilation necessary for GLM")
self.output.warn(os.sep.join([".", "..", "..", "*"]))
def package(self): def package(self):
self.copy("FindGLM.cmake", ".", ".") self.copy("FindGLM.cmake", ".", ".")

View File

@ -1,12 +1,8 @@
from conans import ConanFile, CMake from conans import ConanFile, CMake
import os import os
channel = os.getenv("CONAN_CHANNEL", "testing")
username = os.getenv("CONAN_USERNAME", "g-truc")
class TestGlm(ConanFile): class TestGlm(ConanFile):
settings = "os", "compiler", "build_type", "arch" settings = "os", "compiler", "build_type", "arch"
requires = "glm/master@%s/%s" % (username, channel)
generators = "cmake" generators = "cmake"
def build(self): def build(self):