mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-26 09:16:47 +01:00
- Adapted CMake files for the PKCS#11 support
This commit is contained in:
parent
d61e7d98cb
commit
b06819bb5d
6 changed files with 44 additions and 9 deletions
|
|
@ -1,3 +1,11 @@
|
|||
set(libs
|
||||
polarssl
|
||||
)
|
||||
|
||||
if(USE_PKCS11_HELPER_LIBRARY)
|
||||
set(libs ${libs} pkcs11-helper)
|
||||
endif(USE_PKCS11_HELPER_LIBRARY)
|
||||
|
||||
function(add_test_suite suite_name)
|
||||
add_custom_command(
|
||||
OUTPUT test_suite_${suite_name}.c
|
||||
|
|
@ -7,7 +15,7 @@ function(add_test_suite suite_name)
|
|||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
add_executable(test_suite_${suite_name} test_suite_${suite_name}.c)
|
||||
target_link_libraries(test_suite_${suite_name} polarssl)
|
||||
target_link_libraries(test_suite_${suite_name} ${libs})
|
||||
add_test(${suite_name}-suite test_suite_${suite_name})
|
||||
endfunction(add_test_suite)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue