CMakeLists.txt 468 B

12345678910111213
  1. set(executables
  2. crypt_and_hash
  3. )
  4. foreach(exe IN LISTS executables)
  5. add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>)
  6. target_link_libraries(${exe} ${mbedcrypto_target})
  7. target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include)
  8. endforeach()
  9. install(TARGETS ${executables}
  10. DESTINATION "bin"
  11. PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)