tiny-AES-c/CMakeLists.txt
k6dsp 58d9ab6910
update cmakelists.txt to be able to use it in add_subdirectory()
- Remove reference to ASM language
- advance minimum version of the cmake required as far version 2 is VERY outdated. 
- remove hardcoded folder name of "tiny-AES-c as target_include_directory which by some reason is PRIVATE and could not be used as add_subdirectory() in main project.
2020-06-30 11:56:20 -07:00

18 lines
366 B
CMake

cmake_minimum_required(VERSION 3.12)
project(tiny-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(${PROJECT_NAME}
INTERFACE
${CMAKE_CURRENT_LIST_DIR}
)