aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-02-08 03:22:18 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-02-08 03:22:18 +0300
commit6efde574b8442cf3717b21ffa1434a181d7b6296 (patch)
tree5d0abdcea46583cd7c7d1f33919de622c617be5a /utils
parenttest: code style (diff)
downloadaes-tools-6efde574b8442cf3717b21ffa1434a181d7b6296.tar.gz
aes-tools-6efde574b8442cf3717b21ffa1434a181d7b6296.zip
CMakeLists.txt updates
Diffstat (limited to 'utils')
-rw-r--r--utils/CMakeLists.txt18
1 files changed, 12 insertions, 6 deletions
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
index 2aecf59..c159e75 100644
--- a/utils/CMakeLists.txt
+++ b/utils/CMakeLists.txt
@@ -4,32 +4,38 @@ endif()
find_package(Boost REQUIRED COMPONENTS filesystem program_options system)
-add_executable(util_encrypt_block encrypt_block.cpp block_cmd_parser.hpp block_dumper.hpp block_input.hpp data_parsers.hpp)
+set(block_util_headers block_cmd_parser.hpp block_dumper.hpp block_input.hpp data_parsers.hpp)
+
+add_executable(util_encrypt_block encrypt_block.cpp ${block_util_headers})
target_include_directories(util_encrypt_block SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(util_encrypt_block PRIVATE libaesxx ${Boost_LIBRARIES})
set_target_properties(util_encrypt_block PROPERTIES OUTPUT_NAME encrypt_block)
-add_executable(util_decrypt_block decrypt_block.cpp block_cmd_parser.hpp block_dumper.hpp block_input.hpp data_parsers.hpp)
+add_executable(util_decrypt_block decrypt_block.cpp ${block_util_headers})
target_include_directories(util_decrypt_block SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(util_decrypt_block PRIVATE libaesxx ${Boost_LIBRARIES})
set_target_properties(util_decrypt_block PROPERTIES OUTPUT_NAME decrypt_block)
-add_executable(util_encrypt_file encrypt_file.cpp data_parsers.hpp file_cmd_parser.hpp helpers/file.hpp)
+set(file_util_headers data_parsers.hpp file_cmd_parser.hpp helpers/file.hpp)
+
+add_executable(util_encrypt_file encrypt_file.cpp ${file_util_headers})
target_include_directories(util_encrypt_file SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(util_encrypt_file PRIVATE libaesxx ${Boost_LIBRARIES})
set_target_properties(util_encrypt_file PROPERTIES OUTPUT_NAME encrypt_file)
-add_executable(util_decrypt_file decrypt_file.cpp data_parsers.hpp file_cmd_parser.hpp helpers/file.hpp)
+add_executable(util_decrypt_file decrypt_file.cpp ${file_util_headers})
target_include_directories(util_decrypt_file SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(util_decrypt_file PRIVATE libaesxx ${Boost_LIBRARIES})
set_target_properties(util_decrypt_file PROPERTIES OUTPUT_NAME decrypt_file)
-add_executable(util_encrypt_bmp encrypt_bmp.cpp data_parsers.hpp file_cmd_parser.hpp helpers/bmp.hpp helpers/file.hpp)
+set(bmp_util_headers ${file_util_headers} helpers/bmp.hpp)
+
+add_executable(util_encrypt_bmp encrypt_bmp.cpp ${bmp_util_headers})
target_include_directories(util_encrypt_bmp SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(util_encrypt_bmp PRIVATE libaesxx ${Boost_LIBRARIES})
set_target_properties(util_encrypt_bmp PROPERTIES OUTPUT_NAME encrypt_bmp)
-add_executable(util_decrypt_bmp decrypt_bmp.cpp data_parsers.hpp file_cmd_parser.hpp helpers/bmp.hpp helpers/file.hpp)
+add_executable(util_decrypt_bmp decrypt_bmp.cpp ${bmp_util_headers})
target_include_directories(util_decrypt_bmp SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(util_decrypt_bmp PRIVATE libaesxx ${Boost_LIBRARIES})
set_target_properties(util_decrypt_bmp PROPERTIES OUTPUT_NAME decrypt_bmp)