Merge pull request #167 from k6dsp/patch-1

update cmakelists.txt to be able to use it in add_subdirectory()
This commit is contained in:
kokke 2020-07-01 12:34:13 +02:00 committed by GitHub
commit 3f69a5899e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 add_library(${PROJECT_NAME} "")
aes.c 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}
)