File tree 15 files changed +67
-181
lines changed
15 files changed +67
-181
lines changed Original file line number Diff line number Diff line change 1
- out
1
+ build
2
+ .clangd
3
+ compile_commands.json
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.0.0)
2
+ project (mtsd VERSION 0.1.0)
3
+
4
+ include (CTest)
5
+ enable_testing ()
6
+
7
+ add_subdirectory ("libs/lzma" )
8
+ add_subdirectory ("libs/randombytes" )
9
+ add_subdirectory ("libs/tiny-AES-c" )
10
+ add_subdirectory ("libs/argon2" )
11
+
12
+ add_executable (mtsd
13
+ "src/main.c"
14
+ "src/compression.c"
15
+ "src/encryption.c" )
16
+
17
+ target_link_libraries (mtsd PUBLIC lzma)
18
+ target_link_libraries (mtsd PUBLIC randombytes)
19
+ target_link_libraries (mtsd PUBLIC tiny-AES-c)
20
+ target_link_libraries (mtsd PUBLIC argon2)
21
+
22
+ target_include_directories (mtsd PUBLIC "${PROJECT_BINARY_DIR} " )
23
+
24
+ set (CPACK_PROJECT_NAME ${PROJECT_NAME} )
25
+ set (CPACK_PROJECT_VERSION ${PROJECT_VERSION} )
26
+ include (CPack)
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ add_library (argon2 STATIC )
2
+
3
+ target_sources (argon2 PRIVATE
4
+ "src/argon2.c"
5
+ "src/core.c"
6
+ "src/blake2/blake2b.c"
7
+ "src/thread.c"
8
+ "src/encoding.c"
9
+ "src/opt.c" )
10
+
11
+ target_compile_definitions (argon2 PRIVATE "ARGON2_NO_THREADS" )
12
+
13
+ target_include_directories (argon2 PUBLIC "include" )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ add_library (lzma STATIC )
2
+
3
+ target_sources (lzma PRIVATE
4
+ "LzmaDec.c"
5
+ "LzmaEnc.c"
6
+ "LzFind.c" )
7
+
8
+ target_compile_definitions (lzma PRIVATE "_7ZIP_ST" )
9
+
10
+ target_include_directories (lzma INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ add_library (randombytes STATIC )
2
+
3
+ target_sources (randombytes PRIVATE "randombytes.c" )
4
+
5
+ target_include_directories (randombytes INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ add_library (tiny-AES-c STATIC )
2
+
3
+ target_sources (tiny-AES-c PRIVATE "aes.c" )
4
+
5
+ target_compile_definitions (tiny-AES-c PRIVATE
6
+ "CBC=0"
7
+ "ECB=0"
8
+ "CTR=1" )
9
+
10
+ target_include_directories (tiny-AES-c INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} )
You can’t perform that action at this time.
0 commit comments