diff options
author | kokke <spam@rowdy.dk> | 2020-07-01 12:34:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-01 12:34:13 +0200 |
commit | 3f69a5899e58e2e398e8c32ce7b3a954dd593ed4 (patch) | |
tree | 4225d4d180533fc4d707833a4e5cc93ff972241c | |
parent | Update README.md (diff) | |
parent | update cmakelists.txt to be able to use it in add_subdirectory() (diff) | |
download | tiny-AES-c-3f69a5899e58e2e398e8c32ce7b3a954dd593ed4.tar tiny-AES-c-3f69a5899e58e2e398e8c32ce7b3a954dd593ed4.tar.gz tiny-AES-c-3f69a5899e58e2e398e8c32ce7b3a954dd593ed4.tar.bz2 tiny-AES-c-3f69a5899e58e2e398e8c32ce7b3a954dd593ed4.tar.lz tiny-AES-c-3f69a5899e58e2e398e8c32ce7b3a954dd593ed4.tar.xz tiny-AES-c-3f69a5899e58e2e398e8c32ce7b3a954dd593ed4.tar.zst tiny-AES-c-3f69a5899e58e2e398e8c32ce7b3a954dd593ed4.zip |
-rw-r--r-- | CMakeLists.txt | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c6081f..539cd68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,17 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.12) -project(tinyaes C ASM) +project(tiny-aes C) -add_library(tiny-aes - aes.c - ) +add_library(${PROJECT_NAME} "") +target_sources(${PROJECT_NAME} + PRIVATE + ${CMAKE_CURRENT_LIST_DIR}/aes.c + INTERFACE + ${CMAKE_CURRENT_LIST_DIR}/aes.h + ${CMAKE_CURRENT_LIST_DIR}/aes.hpp +) -target_include_directories(tiny-aes PRIVATE tiny-AES-c/) +target_include_directories(${PROJECT_NAME} + INTERFACE + ${CMAKE_CURRENT_LIST_DIR} +) |