diff options
Diffstat (limited to 'utils/block/CMakeLists.txt')
-rw-r--r-- | utils/block/CMakeLists.txt | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/utils/block/CMakeLists.txt b/utils/block/CMakeLists.txt index 4b232bd..8df91d0 100644 --- a/utils/block/CMakeLists.txt +++ b/utils/block/CMakeLists.txt @@ -1,27 +1,11 @@ -macro(util prefix) - add_executable(util_${prefix}_encrypt_block ${prefix}_encrypt_block.c) - target_link_libraries(util_${prefix}_encrypt_block libaesni) - set_target_properties(util_${prefix}_encrypt_block PROPERTIES OUTPUT_NAME ${prefix}_encrypt_block) +find_package(Boost REQUIRED COMPONENTS program_options) - add_executable(util_${prefix}_decrypt_block ${prefix}_decrypt_block.c) - target_link_libraries(util_${prefix}_decrypt_block libaesni) - set_target_properties(util_${prefix}_decrypt_block PROPERTIES OUTPUT_NAME ${prefix}_decrypt_block) -endmacro() +add_executable(util_aes_encrypt_block aes_encrypt_block.cpp aes_common.hpp) +target_include_directories(util_aes_encrypt_block PRIVATE ${Boost_INCLUDE_DIRS}) +target_link_libraries(util_aes_encrypt_block libaesni libaesnixx ${Boost_LIBRARIES}) +set_target_properties(util_aes_encrypt_block PROPERTIES OUTPUT_NAME aes_encrypt_block) -util(aes128ecb) -util(aes128cbc) -util(aes128cfb) -util(aes128ofb) -util(aes128ctr) -util(aes192ecb) -util(aes192cbc) -util(aes192cfb) -util(aes192ofb) -util(aes192ctr) -util(aes256ecb) -util(aes256cbc) -util(aes256cfb) -util(aes256ofb) -util(aes256ctr) - -add_subdirectory(cxx) +add_executable(util_aes_decrypt_block aes_decrypt_block.cpp aes_common.hpp) +target_include_directories(util_aes_decrypt_block PRIVATE ${Boost_INCLUDE_DIRS}) +target_link_libraries(util_aes_decrypt_block libaesni libaesnixx ${Boost_LIBRARIES}) +set_target_properties(util_aes_decrypt_block PROPERTIES OUTPUT_NAME aes_decrypt_block) |