CMakeLists.txt 821 B

12345678910111213141516171819
  1. SET(SOURCE_GROUP ${SOURCE_GROUP}\\freertosLWIP)
  2. ua_add_architecture("freertosLWIP")
  3. list (FIND UA_AMALGAMATION_ARCHITECUTRES "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. endif()
  14. endif()