CMakeLists.txt 671 B

123456789101112131415161718192021
  1. SET(SOURCE_GROUP ${SOURCE_GROUP}\\eCos)
  2. ua_add_architecture("eCos")
  3. list (FIND UA_AMALGAMATION_ARCHITECUTRES "eCos" _index)
  4. if (${_index} GREATER -1 OR "${UA_ARCHITECTURE}" STREQUAL "eCos")
  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 "eCos")
  8. ua_include_directories(${CMAKE_CURRENT_SOURCE_DIR})
  9. set(UA_ECOS_HOSTNAME "eCos-host" CACHE STRING "Define a custom hostname/ip for the endpoint.")
  10. ua_architecture_add_definitions(-DUA_ECOS_HOSTNAME="${UA_ECOS_HOSTNAME}")
  11. endif()
  12. endif()