CMakeLists.txt 633 B

123456789101112131415161718192021
  1. SET(SOURCE_GROUP ${SOURCE_GROUP}\\vxworks)
  2. ua_add_architecture("vxworks")
  3. list (FIND UA_AMALGAMATION_ARCHITECUTRES "vxworks" _index)
  4. if (${_index} GREATER -1 OR "${UA_ARCHITECTURE}" STREQUAL "vxworks")
  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 "vxworks")
  8. ua_include_directories(${CMAKE_CURRENT_SOURCE_DIR})
  9. ua_architecture_remove_definitions(-Werror -Wpedantic -Wno-static-in-inline)
  10. ua_architecture_add_definitions(-D_WRS_KERNEL)
  11. endif()
  12. endif()