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:
parent
44b1cb5d96
commit
22c8d84b1e
0
external/B64/CMakeLists.txt
vendored
0
external/B64/CMakeLists.txt
vendored
0
external/Hash/CMakeLists.txt
vendored
0
external/Hash/CMakeLists.txt
vendored
@ -1,4 +1,4 @@
|
||||
#
|
||||
# Create the Squirrel module
|
||||
add_library(SquirrelModule MODULE
|
||||
SqBase.hpp
|
||||
Main.cpp
|
||||
|
7
source/Library/Crypt/AES256/CMakeLists.txt
Normal file
7
source/Library/Crypt/AES256/CMakeLists.txt
Normal 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 )
|
7
source/Library/Crypt/B64/CMakeLists.txt
Normal file
7
source/Library/Crypt/B64/CMakeLists.txt
Normal 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 )
|
@ -8,7 +8,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include "b64.h"
|
||||
#include <b64.h>
|
||||
|
||||
|
||||
unsigned char *
|
@ -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) {
|
17
source/Library/Crypt/Hash/CMakeLists.txt
Normal file
17
source/Library/Crypt/Hash/CMakeLists.txt
Normal 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 )
|
13
source/Library/Crypt/Whirlpool/CMakeLists.txt
Normal file
13
source/Library/Crypt/Whirlpool/CMakeLists.txt
Normal 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 )
|
@ -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})
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user