diff options
Diffstat (limited to 'src/common/CMakeLists.txt')
| -rw-r--r-- | src/common/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 4c086cd2f..cef5081c5 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -56,6 +56,14 @@ set(HEADERS | |||
| 56 | vector_math.h | 56 | vector_math.h |
| 57 | ) | 57 | ) |
| 58 | 58 | ||
| 59 | if(_M_X86) | ||
| 60 | set(SRCS ${SRCS} | ||
| 61 | cpu_detect_x86.cpp) | ||
| 62 | else() | ||
| 63 | set(SRCS ${SRCS} | ||
| 64 | cpu_detect_generic.cpp) | ||
| 65 | endif() | ||
| 66 | |||
| 59 | create_directory_groups(${SRCS} ${HEADERS}) | 67 | create_directory_groups(${SRCS} ${HEADERS}) |
| 60 | 68 | ||
| 61 | add_library(common STATIC ${SRCS} ${HEADERS}) | 69 | add_library(common STATIC ${SRCS} ${HEADERS}) |