diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-28 04:31:25 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-28 04:31:25 +0100 |
commit | ac55a91fe94b78bde373169264e6b7a180c39f04 (patch) | |
tree | 33f9a38de1e7056d02ca61c82a41e604dabdf232 /cmake/fastd_module.cmake | |
parent | ca49096f5d02e351b928b2fd584bd7ca0d5fcf1f (diff) | |
download | fastd-ac55a91fe94b78bde373169264e6b7a180c39f04.tar fastd-ac55a91fe94b78bde373169264e6b7a180c39f04.zip |
Add a pclmulqdq ghash implementation
Diffstat (limited to 'cmake/fastd_module.cmake')
-rw-r--r-- | cmake/fastd_module.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/fastd_module.cmake b/cmake/fastd_module.cmake index 26285ae..093e28b 100644 --- a/cmake/fastd_module.cmake +++ b/cmake/fastd_module.cmake @@ -49,3 +49,11 @@ function(fastd_module_require type name) endforeach(req) endif(WITH_${TYPE}_${NAME}) endfunction(fastd_module_require) + +function(fastd_module_compile_flags type name source) + _fastd_module_handle_name() + + if(WITH_${TYPE}_${NAME}) + set_property(SOURCE ${source} APPEND PROPERTY COMPILE_FLAGS ${ARGN}) + endif(WITH_${TYPE}_${NAME}) +endfunction(fastd_module_compile_flags) |