Added VCC build
This commit is contained in:
12
external/glm-0.9.9-a2/util/conan-package/test_package/CMakeLists.txt
vendored
Normal file
12
external/glm-0.9.9-a2/util/conan-package/test_package/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
project(GlmTest)
|
||||
cmake_minimum_required(VERSION 3.0.0)
|
||||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
||||
conan_basic_setup()
|
||||
|
||||
if(MSVC)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
|
||||
endif(MSVC)
|
||||
|
||||
add_executable(testGlm main.cpp)
|
||||
|
||||
|
||||
15
external/glm-0.9.9-a2/util/conan-package/test_package/conanfile.py
vendored
Normal file
15
external/glm-0.9.9-a2/util/conan-package/test_package/conanfile.py
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
from conans import ConanFile, CMake
|
||||
import os
|
||||
|
||||
class TestGlm(ConanFile):
|
||||
settings = "os", "compiler", "build_type", "arch"
|
||||
generators = "cmake"
|
||||
|
||||
def build(self):
|
||||
cmake = CMake(self)
|
||||
self.run('cmake "%s" %s' % (self.conanfile_directory, cmake.command_line))
|
||||
self.run("cmake --build . %s" % cmake.build_config)
|
||||
|
||||
def test(self):
|
||||
self.run(os.sep.join([".","bin", "testGlm"]))
|
||||
|
||||
6
external/glm-0.9.9-a2/util/conan-package/test_package/main.cpp
vendored
Normal file
6
external/glm-0.9.9-a2/util/conan-package/test_package/main.cpp
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "glm/glm.hpp"
|
||||
|
||||
int main (){
|
||||
glm::mat4x4 aMatrix;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user