1set(libs 2 ${mbedx509_target} 3) 4 5set(executables 6 cert_app 7 cert_req 8 cert_write 9 crl_app 10 load_roots 11 req_app 12) 13 14foreach(exe IN LISTS executables) 15 add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>) 16 target_link_libraries(${exe} ${libs}) 17 target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include) 18endforeach() 19 20target_link_libraries(cert_app ${mbedtls_target}) 21 22install(TARGETS ${executables} 23 DESTINATION "bin" 24 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) 25