1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

More work on Cmake scripts.

This commit is contained in:
Sandu Liviu Catalin 2020-03-21 22:00:02 +02:00
parent 44b1cb5d96
commit 22c8d84b1e
41 changed files with 49 additions and 5 deletions

View File

View File

View File

@ -1,4 +1,4 @@
#
# Create the Squirrel module
add_library(SquirrelModule MODULE
SqBase.hpp
Main.cpp

View File

@ -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 )

View File

@ -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 )

View File

@ -8,7 +8,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "b64.h"
#include <b64.h>
unsigned char *

View File

@ -7,7 +7,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "b64.h"
#include <b64.h>
char *
b64_encode (const unsigned char *src, size_t len) {

View File

@ -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 )

View File

@ -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 )

View File

@ -7,7 +7,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
#target_compile_options(Sqrat PRIVATE -w
#)
endif()
# Configure macro options
# Configure build options
target_compile_definitions(Sqrat INTERFACE GARBAGE_COLLECTOR=1)
# Library includes
target_include_directories(Sqrat INTERFACE ${CMAKE_CURRENT_LIST_DIR})

View File

@ -55,7 +55,7 @@ if (GCC OR MINGW)
-Wno-unused-but-set-variable
)
endif()
# Configure macro options
# Configure build options
target_compile_definitions(Squirrel PRIVATE GARBAGE_COLLECTOR=1)
# Library includes
target_include_directories(Squirrel PRIVATE ${CMAKE_CURRENT_LIST_DIR})