mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
cmake: add cflags
This commit is contained in:
parent
dc6b751ea3
commit
f9857a8b0c
9 changed files with 15 additions and 4 deletions
|
@ -15,3 +15,4 @@ add_library(amiibo STATIC
|
|||
|
||||
target_include_directories(amiibo PRIVATE ../../include ../../common)
|
||||
target_include_directories(amiibo INTERFACE amiitool)
|
||||
target_compile_options(amiibo PRIVATE -Wall -Werror -O3)
|
||||
|
|
|
@ -9,6 +9,7 @@ add_library(hardnested_nosimd OBJECT
|
|||
target_include_directories(hardnested_nosimd PRIVATE
|
||||
../../common
|
||||
../../include)
|
||||
target_compile_options(hardnested_nosimd PRIVATE -Wall -Werror -O3)
|
||||
|
||||
set(X86_CPUS x86 x86_64 i686)
|
||||
|
||||
|
@ -26,6 +27,7 @@ if ("${CMAKE_SYSTEM_PROCESSOR}" IN_LIST X86_CPUS)
|
|||
hardnested/hardnested_bf_core.c
|
||||
hardnested/hardnested_bitarray_core.c)
|
||||
|
||||
target_compile_options(hardnested_mmx PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(hardnested_mmx BEFORE PRIVATE
|
||||
-mmmx -mno-sse2 -mno-avx -mno-avx2 -mno-avx512f)
|
||||
|
||||
|
@ -40,6 +42,7 @@ if ("${CMAKE_SYSTEM_PROCESSOR}" IN_LIST X86_CPUS)
|
|||
hardnested/hardnested_bf_core.c
|
||||
hardnested/hardnested_bitarray_core.c)
|
||||
|
||||
target_compile_options(hardnested_sse2 PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(hardnested_sse2 BEFORE PRIVATE
|
||||
-mmmx -msse2 -mno-avx -mno-avx2 -mno-avx512f)
|
||||
|
||||
|
@ -54,6 +57,7 @@ if ("${CMAKE_SYSTEM_PROCESSOR}" IN_LIST X86_CPUS)
|
|||
hardnested/hardnested_bf_core.c
|
||||
hardnested/hardnested_bitarray_core.c)
|
||||
|
||||
target_compile_options(hardnested_avx PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(hardnested_avx BEFORE PRIVATE
|
||||
-mmmx -msse2 -mavx -mno-avx2 -mno-avx512f)
|
||||
|
||||
|
@ -68,6 +72,7 @@ if ("${CMAKE_SYSTEM_PROCESSOR}" IN_LIST X86_CPUS)
|
|||
hardnested/hardnested_bf_core.c
|
||||
hardnested/hardnested_bitarray_core.c)
|
||||
|
||||
target_compile_options(hardnested_avx2 PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(hardnested_avx2 BEFORE PRIVATE
|
||||
-mmmx -msse2 -mavx -mavx2 -mno-avx512f)
|
||||
|
||||
|
@ -82,6 +87,7 @@ if ("${CMAKE_SYSTEM_PROCESSOR}" IN_LIST X86_CPUS)
|
|||
hardnested/hardnested_bf_core.c
|
||||
hardnested/hardnested_bitarray_core.c)
|
||||
|
||||
target_compile_options(hardnested_avx512 PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(hardnested_avx512 BEFORE PRIVATE
|
||||
-mmmx -msse2 -mavx -mavx2 -mavx512f)
|
||||
|
||||
|
|
|
@ -17,3 +17,4 @@ add_library(jansson STATIC
|
|||
|
||||
target_compile_definitions(jansson PRIVATE HAVE_STDINT_H)
|
||||
target_include_directories(jansson INTERFACE jansson)
|
||||
target_compile_options(jansson PRIVATE -Wall -Werror -Wno-unused-function -O3)
|
||||
|
|
|
@ -45,3 +45,4 @@ if (NOT MINGW)
|
|||
endif (NOT MINGW)
|
||||
|
||||
target_include_directories(lua INTERFACE liblua)
|
||||
target_compile_options(lua PRIVATE -Wall -Werror -O3)
|
||||
|
|
|
@ -47,3 +47,4 @@ add_library(mbedtls STATIC
|
|||
)
|
||||
|
||||
target_include_directories(mbedtls PRIVATE ../../common)
|
||||
target_compile_options(mbedtls PRIVATE -Wall -Werror -O3)
|
||||
|
|
|
@ -12,3 +12,4 @@ add_library(reveng STATIC
|
|||
|
||||
target_compile_definitions(reveng PRIVATE PRESETS)
|
||||
target_include_directories(reveng PRIVATE .)
|
||||
target_compile_options(reveng PRIVATE -Wall -Werror -O3)
|
||||
|
|
|
@ -10,4 +10,4 @@ add_library(tinycbor STATIC
|
|||
)
|
||||
|
||||
target_include_directories(tinycbor INTERFACE tinycbor)
|
||||
|
||||
target_compile_options(tinycbor PRIVATE -Wall -Werror -O2)
|
||||
|
|
|
@ -11,3 +11,4 @@ add_library(z STATIC
|
|||
)
|
||||
|
||||
target_compile_definitions(z PRIVATE Z_SOLO NO_GZIP ZLIB_PM3_TUNED)
|
||||
target_compile_options(z PRIVATE -Wall -Werror -O3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue