mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-19 12:07:11 +02:00
More work on Cmake scripts.
This commit is contained in:
1 parent
44b1cb5d96
commit
22c8d84b1e
41 files changed
+49
-5
No files matched your search
Vendored
Whitespace-only changes.
Vendored
Whitespace-only changes.
@@ -1,4 +1,4 @@
|
|||||||
#
|
# Create the Squirrel module
|
||||||
add_library(SquirrelModule MODULE
|
add_library(SquirrelModule MODULE
|
||||||
SqBase.hpp
|
SqBase.hpp
|
||||||
Main.cpp
|
Main.cpp
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Create the AES256Lib library
|
||||||
|
add_library(AES256Lib STATIC include/aes256.h aes256.cpp)
|
||||||
|
# Configure include folders
|
||||||
|
target_include_directories(AES256Lib PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
||||||
|
target_include_directories(AES256Lib PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
|
||||||
|
# Configure build options
|
||||||
|
target_compile_definitions(AES256Lib PRIVATE )
|
||||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,7 @@
|
|||||||
|
# Create the B64Lib library
|
||||||
|
add_library(B64Lib STATIC include/b64.h decode.c decode.c)
|
||||||
|
# Configure include folders
|
||||||
|
target_include_directories(B64Lib PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
||||||
|
target_include_directories(B64Lib PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
|
||||||
|
# Configure build options
|
||||||
|
target_compile_definitions(B64Lib PRIVATE )
|
||||||
File renamed without changes.
@@ -8,7 +8,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include "b64.h"
|
#include <b64.h>
|
||||||
|
|
||||||
|
|
||||||
unsigned char *
|
unsigned char *
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "b64.h"
|
#include <b64.h>
|
||||||
|
|
||||||
char *
|
char *
|
||||||
b64_encode (const unsigned char *src, size_t len) {
|
b64_encode (const unsigned char *src, size_t len) {
|
||||||
File renamed without changes.
@@ -0,0 +1,17 @@
|
|||||||
|
# Create the HashLib library
|
||||||
|
add_library(HashLib STATIC
|
||||||
|
include/hash.h
|
||||||
|
include/hmac.h
|
||||||
|
include/crc32.h crc32.cpp
|
||||||
|
include/keccak.h keccak.cpp
|
||||||
|
include/md5.h md5.cpp
|
||||||
|
include/sha1.h sha1.cpp
|
||||||
|
include/sha3.h sha3.cpp
|
||||||
|
include/sha256.h sha256.cpp
|
||||||
|
digest.cpp
|
||||||
|
)
|
||||||
|
# Configure include folders
|
||||||
|
target_include_directories(HashLib PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
||||||
|
target_include_directories(HashLib PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
|
||||||
|
# Configure build options
|
||||||
|
target_compile_definitions(HashLib PRIVATE )
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,13 @@
|
|||||||
|
# Create the WhirlpoolLib library
|
||||||
|
add_library(WhirlpoolLib STATIC
|
||||||
|
include/ustd.h
|
||||||
|
include/whirlpool.h
|
||||||
|
byte_order.h byte_order.c
|
||||||
|
whirlpool.c.c
|
||||||
|
whirlpool_sbox.c
|
||||||
|
)
|
||||||
|
# Configure include folders
|
||||||
|
target_include_directories(WhirlpoolLib PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
||||||
|
target_include_directories(WhirlpoolLib PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
|
||||||
|
# Configure build options
|
||||||
|
target_compile_definitions(WhirlpoolLib PRIVATE )
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -7,7 +7,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|||||||
#target_compile_options(Sqrat PRIVATE -w
|
#target_compile_options(Sqrat PRIVATE -w
|
||||||
#)
|
#)
|
||||||
endif()
|
endif()
|
||||||
# Configure macro options
|
# Configure build options
|
||||||
target_compile_definitions(Sqrat INTERFACE GARBAGE_COLLECTOR=1)
|
target_compile_definitions(Sqrat INTERFACE GARBAGE_COLLECTOR=1)
|
||||||
# Library includes
|
# Library includes
|
||||||
target_include_directories(Sqrat INTERFACE ${CMAKE_CURRENT_LIST_DIR})
|
target_include_directories(Sqrat INTERFACE ${CMAKE_CURRENT_LIST_DIR})
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ if (GCC OR MINGW)
|
|||||||
-Wno-unused-but-set-variable
|
-Wno-unused-but-set-variable
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
# Configure macro options
|
# Configure build options
|
||||||
target_compile_definitions(Squirrel PRIVATE GARBAGE_COLLECTOR=1)
|
target_compile_definitions(Squirrel PRIVATE GARBAGE_COLLECTOR=1)
|
||||||
# Library includes
|
# Library includes
|
||||||
target_include_directories(Squirrel PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
target_include_directories(Squirrel PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
||||||
|
|||||||
Reference in new issue
Block a user