summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authork6dsp <k6dsp@users.noreply.github.com>2020-06-30 20:56:20 +0200
committerGitHub <noreply@github.com>2020-06-30 20:56:20 +0200
commit58d9ab69101252bd654ae800a0aa8cd8de60727a (patch)
tree4225d4d180533fc4d707833a4e5cc93ff972241c
parentUpdate README.md (diff)
downloadtiny-AES-c-58d9ab69101252bd654ae800a0aa8cd8de60727a.tar
tiny-AES-c-58d9ab69101252bd654ae800a0aa8cd8de60727a.tar.gz
tiny-AES-c-58d9ab69101252bd654ae800a0aa8cd8de60727a.tar.bz2
tiny-AES-c-58d9ab69101252bd654ae800a0aa8cd8de60727a.tar.lz
tiny-AES-c-58d9ab69101252bd654ae800a0aa8cd8de60727a.tar.xz
tiny-AES-c-58d9ab69101252bd654ae800a0aa8cd8de60727a.tar.zst
tiny-AES-c-58d9ab69101252bd654ae800a0aa8cd8de60727a.zip
-rw-r--r--CMakeLists.txt20
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}
+)