CMakeLists.txt 1.0 KB

12345678910111213141516171819202122
  1. SET(SOURCE_GROUP ${SOURCE_GROUP}\\freertosLWIP)
  2. ua_add_architecture("freertosLWIP")
  3. list (FIND UA_AMALGAMATION_ARCHITECTURES "freertosLWIP" _index)
  4. if (${_index} GREATER -1 OR "${UA_ARCHITECTURE}" STREQUAL "freertosLWIP")
  5. ua_add_architecture_file(${CMAKE_CURRENT_SOURCE_DIR}/ua_clock.c)
  6. ua_add_architecture_file(${CMAKE_CURRENT_SOURCE_DIR}/ua_architecture_functions.c)
  7. if("${UA_ARCHITECTURE}" STREQUAL "freertosLWIP")
  8. ua_include_directories(${CMAKE_CURRENT_SOURCE_DIR})
  9. set(UA_ARCH_FREERTOS_USE_OWN_MEMORY_FUNCTIONS OFF CACHE BOOL "Enable free/malloc/etc from own implementation")
  10. if(UA_ARCH_FREERTOS_USE_OWN_MEMORY_FUNCTIONS)
  11. ua_architecture_add_definitions("-DOPEN62541_FEERTOS_USE_OWN_MEM")
  12. endif(UA_ARCH_FREERTOS_USE_OWN_MEMORY_FUNCTIONS)
  13. ua_add_architecture_header_beginning(${CMAKE_CURRENT_SOURCE_DIR}/../common/ua_freeRTOS.h
  14. ${CMAKE_CURRENT_SOURCE_DIR}/../common/ua_lwip.h
  15. )
  16. endif()
  17. endif()