12 changed files with 43 additions and 198 deletions
@ -1,22 +1,22 @@
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 3.12) |
||||
PROJECT(cryptutils LANGUAGES C) |
||||
cmake_minimum_required(VERSION 3.12) |
||||
project(cryptutils LANGUAGES C) |
||||
|
||||
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib) |
||||
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin) |
||||
SET(CMAKE_STATIC_LIBRARY_PREFIX "") |
||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib) |
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin) |
||||
set(CMAKE_STATIC_LIBRARY_PREFIX "") |
||||
|
||||
FIND_PACKAGE(OpenSSL REQUIRED) |
||||
find_package(OpenSSL REQUIRED) |
||||
|
||||
FILE(GLOB SRC_UTIL ${PROJECT_SOURCE_DIR}/src/util/*) |
||||
file(GLOB SRC_UTIL ${PROJECT_SOURCE_DIR}/src/util/*) |
||||
|
||||
ADD_LIBRARY(libutil STATIC ${SRC_UTIL}) |
||||
add_library(libutil STATIC ${SRC_UTIL}) |
||||
|
||||
LINK_LIBRARIES(libutil) |
||||
link_libraries(libutil) |
||||
|
||||
ADD_EXECUTABLE(alder32 ${PROJECT_SOURCE_DIR}/src/alder32.c) |
||||
ADD_EXECUTABLE(crc32 ${PROJECT_SOURCE_DIR}/src/crc32.c) |
||||
ADD_EXECUTABLE(fnv1a64 ${PROJECT_SOURCE_DIR}/src/fnv1a64.c) |
||||
ADD_EXECUTABLE(otp ${PROJECT_SOURCE_DIR}/src/otp.c) |
||||
ADD_EXECUTABLE(rc2 ${PROJECT_SOURCE_DIR}/src/rc2.c) |
||||
add_executable(alder32 ${PROJECT_SOURCE_DIR}/src/alder32.c) |
||||
add_executable(crc32 ${PROJECT_SOURCE_DIR}/src/crc32.c) |
||||
add_executable(fnv1a64 ${PROJECT_SOURCE_DIR}/src/fnv1a64.c) |
||||
add_executable(otp ${PROJECT_SOURCE_DIR}/src/otp.c) |
||||
add_executable(rc2 ${PROJECT_SOURCE_DIR}/src/rc2.c) |
||||
|
||||
TARGET_LINK_LIBRARIES(otp OpenSSL::Crypto) |
||||
target_link_libraries(otp OpenSSL::Crypto) |
||||
|
@ -1,24 +1,20 @@
|
||||
OMKOV Permissive Licence, version 1.0 |
||||
MIT Licence |
||||
|
||||
Copyright (C) 2020, Jakob Wakeling |
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of |
||||
this software and associated documentation files (the "Software"), to deal with |
||||
this software and associated documentation files (the "Software"), to deal in |
||||
the Software without restriction, including without limitation the rights to |
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of |
||||
the Software, and to permit persons to whom the Software is furnished to do so, |
||||
subject to the following conditions: |
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this |
||||
list of conditions and the following disclaimers. |
||||
* Redistributions in binary form must reproduce the above copyright notice, this |
||||
list of conditions and the following disclaimers in the documentation and/or |
||||
other materials provided with the distribution. |
||||
* Neither the names of the copyright holders, nor the names of its contributors |
||||
may be used to endorse or promote products derived from this Software without |
||||
specific prior written permission. |
||||
The above copyright notice and this permission notice shall be included in all |
||||
copies or substantial portions of the Software. |
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT |
||||
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. |
||||
FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER |
||||
IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN |
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
||||
|
Loading…
Reference in new issue