Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Tiny AES C
Commits
3f69a589
Unverified
Commit
3f69a589
authored
Jul 01, 2020
by
kokke
Committed by
GitHub
Jul 01, 2020
Browse files
Merge pull request #167 from k6dsp/patch-1
update cmakelists.txt to be able to use it in add_subdirectory()
parents
b4240662
58d9ab69
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
3f69a589
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
}
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment