Add sources
This commit is contained in:
37
external/CMakeLists.txt
vendored
Normal file
37
external/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
add_subdirectory(containers)
|
||||
|
||||
#############################################
|
||||
|
||||
# MD2
|
||||
|
||||
add_library(md2 STATIC crypto-algorithms/md2.c crypto-algorithms/md2.h)
|
||||
target_include_directories(md2 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/crypto-algorithms/)
|
||||
|
||||
add_executable(md2_test crypto-algorithms/md2_test.c)
|
||||
target_link_libraries(md2_test PRIVATE md2)
|
||||
|
||||
# MD5
|
||||
|
||||
add_library(md5 STATIC crypto-algorithms/md5.c crypto-algorithms/md5.h)
|
||||
target_include_directories(md5 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/crypto-algorithms/)
|
||||
|
||||
add_executable(md5_test crypto-algorithms/md5_test.c)
|
||||
target_link_libraries(md5_test PRIVATE md5)
|
||||
|
||||
# SHA1
|
||||
|
||||
add_library(sha1 STATIC crypto-algorithms/sha1.c crypto-algorithms/sha1.h)
|
||||
target_include_directories(sha1 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/crypto-algorithms/)
|
||||
|
||||
add_executable(sha1_test crypto-algorithms/sha1_test.c)
|
||||
target_link_libraries(sha1_test PRIVATE sha1)
|
||||
|
||||
# SHA256
|
||||
|
||||
add_library(sha256 STATIC crypto-algorithms/sha256.c crypto-algorithms/sha256.h)
|
||||
target_include_directories(sha1 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/crypto-algorithms/)
|
||||
|
||||
add_executable(sha256_test crypto-algorithms/sha256_test.c)
|
||||
target_link_libraries(sha256_test PRIVATE sha256)
|
||||
|
||||
1
external/containers
vendored
Submodule
1
external/containers
vendored
Submodule
Submodule external/containers added at 67fa335974
1
external/crypto-algorithms
vendored
Submodule
1
external/crypto-algorithms
vendored
Submodule
Submodule external/crypto-algorithms added at cfbde48414
Reference in New Issue
Block a user