Ajout version Release/x64 avec les libraries x64 et tuning de la version Debug
This commit is contained in:
9
SQCSim2021/external/glew210/build/conan/test_package/CMakeLists.txt
vendored
Normal file
9
SQCSim2021/external/glew210/build/conan/test_package/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
project(GlewTest)
|
||||
cmake_minimum_required(VERSION 3.0.0)
|
||||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
||||
conan_basic_setup()
|
||||
|
||||
add_executable(testGlew main.c)
|
||||
target_compile_definitions(testGlew PUBLIC "${CONAN_DEFINES}")
|
||||
target_link_libraries(testGlew PUBLIC "${CONAN_LIBS}")
|
||||
set_target_properties(testGlew PROPERTIES LINK_FLAGS "${CONAN_EXE_LINKER_FLAGS}")
|
21
SQCSim2021/external/glew210/build/conan/test_package/conanfile.py
vendored
Normal file
21
SQCSim2021/external/glew210/build/conan/test_package/conanfile.py
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
from conans import ConanFile, CMake
|
||||
import os
|
||||
|
||||
class TestGlew(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", "testGlew"]))
|
||||
|
||||
def imports(self):
|
||||
if self.settings.os == "Windows":
|
||||
self.copy(pattern="*.dll", dst="bin", src="bin")
|
||||
self.copy(pattern="*.pdb", dst="bin", src="bin")
|
||||
if self.settings.os == "Macos":
|
||||
self.copy(pattern="*.dylib", dst="bin", src="lib")
|
6
SQCSim2021/external/glew210/build/conan/test_package/main.c
vendored
Normal file
6
SQCSim2021/external/glew210/build/conan/test_package/main.c
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "GL/glew.h"
|
||||
|
||||
int main (){
|
||||
glewGetString(GLEW_VERSION);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user