CMakeLists.txt 1.1 KB

1234567891011121314151617181920212223
  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. ua_include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common)
  10. set(UA_ARCH_FREERTOS_USE_OWN_MEMORY_FUNCTIONS OFF CACHE BOOL "Enable free/malloc/etc from own implementation")
  11. if(UA_ARCH_FREERTOS_USE_OWN_MEMORY_FUNCTIONS)
  12. ua_architecture_add_definitions("-DOPEN62541_FEERTOS_USE_OWN_MEM")
  13. endif(UA_ARCH_FREERTOS_USE_OWN_MEMORY_FUNCTIONS)
  14. ua_add_architecture_header_beginning(${CMAKE_CURRENT_SOURCE_DIR}/../common/ua_freeRTOS.h
  15. ${CMAKE_CURRENT_SOURCE_DIR}/../common/ua_lwip.h
  16. )
  17. endif()
  18. endif()