cmake: support multiple CPU targets

This commit is contained in:
Alexander Alekhin
2016-09-07 18:02:36 +03:00
parent 47ae5f14f5
commit e16227b53c
28 changed files with 1439 additions and 393 deletions

9
cmake/checks/cpu_avx.cpp Normal file
View File

@@ -0,0 +1,9 @@
#if !defined __AVX__ // MSVC supports this flag since MSVS 2013
#error "__AVX__ define is missing"
#endif
#include <immintrin.h>
void test()
{
__m256 a = _mm256_set1_ps(0.0f);
}
int main() { return 0; }