CMakeLists.txt 874 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # cmake for wolfssl
  3. #
  4. cmake_minimum_required(VERSION 3.5)
  5. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSL_USER_SETTINGS")
  6. set(CMAKE_CURRENT_SOURCE_DIR ".")
  7. set(WOLFSSL_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
  8. set(INCLUDE_PATH ${WOLFSSL_ROOT})
  9. set(COMPONENT_SRCDIRS "./src/"
  10. "./wolfcrypt/src/"
  11. "./wolfcrypt/src/port/Espressif/"
  12. "./wolfcrypt/src/port/atmel/"
  13. )
  14. set(COMPONENT_REQUIRES lwip)
  15. set(COMPONENT_ADD_INCLUDEDIRS
  16. "."
  17. "./include"
  18. "../freertos/include/freertos"
  19. "${WOLFSSL_ROOT}"
  20. )
  21. if(IS_DIRECTORY ${IDF_PATH}/components/cryptoauthlib)
  22. list(APPEND COMPONENT_ADD_INCLUDEDIRS "../cryptoauthlib/lib")
  23. endif()
  24. set(COMPONENT_SRCEXCLUDE
  25. "wolfcrypt/src/aes_asm.S"
  26. "wolfcrypt/src/evp.c"
  27. "wolfcrypt/src/misc.c"
  28. "src/bio.c"
  29. )
  30. register_component()