text stringlengths 0 261 |
|---|
add_compile_options(-Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-c++11-long-long -Wno-padded -Wno-gnu-anonymous-struct -Wno-nested-anon-types) |
add_compile_options(-Wno-undefined-reinterpret-cast -Wno-sign-conversion -Wno-unused-variable -Wno-missing-prototypes -Wno-unreachable-code -Wno-missing-variable-declarations -Wno-sign-compare -Wno-global-constructors -Wno-unused-macros -Wno-format-nonliteral) |
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU") |
if(NOT GLM_QUIET) |
message("GLM: GCC - ${CMAKE_CXX_COMPILER_ID} compiler") |
endif() |
add_compile_options(-O2) |
add_compile_options(-Wno-long-long) |
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel") |
if(NOT GLM_QUIET) |
message("GLM: Intel - ${CMAKE_CXX_COMPILER_ID} compiler") |
endif() |
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") |
if(NOT GLM_QUIET) |
message("GLM: Visual C++ - ${CMAKE_CXX_COMPILER_ID} compiler") |
endif() |
add_compile_options(/W4 /WX) |
add_compile_options(/wd4309 /wd4324 /wd4389 /wd4127 /wd4267 /wd4146 /wd4201 /wd4464 /wd4514 /wd4701 /wd4820 /wd4365) |
add_definitions(-D_CRT_SECURE_NO_WARNINGS) |
endif() |
function(glmCreateTestGTC NAME) |
set(SAMPLE_NAME test-${NAME}) |
add_executable(${SAMPLE_NAME} ${NAME}.cpp) |
add_test( |
NAME ${SAMPLE_NAME} |
COMMAND $<TARGET_FILE:${SAMPLE_NAME}> ) |
target_link_libraries(${SAMPLE_NAME} PRIVATE glm::glm) |
endfunction() |
if(GLM_TEST_ENABLE) |
add_subdirectory(bug) |
add_subdirectory(core) |
add_subdirectory(ext) |
add_subdirectory(gtc) |
add_subdirectory(gtx) |
add_subdirectory(perf) |
endif() |
glmCreateTestGTC(bug_ms_vec_static) |
cmake_minimum_required(VERSION 3.2 FATAL_ERROR) |
project(test_find_glm) |
find_package(glm REQUIRED) |
add_executable(test_find_glm test_find_glm.cpp) |
target_link_libraries(test_find_glm glm::glm) |
glmCreateTestGTC(core_cpp_constexpr) |
glmCreateTestGTC(core_cpp_defaulted_ctor) |
glmCreateTestGTC(core_force_aligned_gentypes) |
glmCreateTestGTC(core_force_ctor_init) |
glmCreateTestGTC(core_force_cxx03) |
glmCreateTestGTC(core_force_cxx98) |
glmCreateTestGTC(core_force_arch_unknown) |
glmCreateTestGTC(core_force_compiler_unknown) |
glmCreateTestGTC(core_force_cxx_unknown) |
glmCreateTestGTC(core_force_explicit_ctor) |
glmCreateTestGTC(core_force_inline) |
glmCreateTestGTC(core_force_platform_unknown) |
glmCreateTestGTC(core_force_pure) |
glmCreateTestGTC(core_force_unrestricted_gentype) |
glmCreateTestGTC(core_force_xyzw_only) |
glmCreateTestGTC(core_force_quat_xyzw) |
glmCreateTestGTC(core_type_aligned) |
glmCreateTestGTC(core_type_cast) |
glmCreateTestGTC(core_type_ctor) |
glmCreateTestGTC(core_type_int) |
glmCreateTestGTC(core_type_length) |
glmCreateTestGTC(core_type_mat2x2) |
glmCreateTestGTC(core_type_mat2x3) |
glmCreateTestGTC(core_type_mat2x4) |
glmCreateTestGTC(core_type_mat3x2) |
glmCreateTestGTC(core_type_mat3x3) |
glmCreateTestGTC(core_type_mat3x4) |
glmCreateTestGTC(core_type_mat4x2) |
glmCreateTestGTC(core_type_mat4x3) |
glmCreateTestGTC(core_type_mat4x4) |
glmCreateTestGTC(core_type_vec1) |
glmCreateTestGTC(core_type_vec2) |
glmCreateTestGTC(core_type_vec3) |
glmCreateTestGTC(core_type_vec4) |
glmCreateTestGTC(core_func_common) |
glmCreateTestGTC(core_func_exponential) |
glmCreateTestGTC(core_func_geometric) |
glmCreateTestGTC(core_func_integer) |
glmCreateTestGTC(core_func_integer_bit_count) |
glmCreateTestGTC(core_func_integer_find_lsb) |
glmCreateTestGTC(core_func_integer_find_msb) |
glmCreateTestGTC(core_func_matrix) |
glmCreateTestGTC(core_func_noise) |
glmCreateTestGTC(core_func_packing) |
glmCreateTestGTC(core_func_trigonometric) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.