mirror of
https://github.com/kokke/tiny-AES-c
synced 2024-11-22 05:21:52 +03:00
58d9ab6910
- 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.
18 lines
366 B
CMake
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}
|
|
)
|