12345678910111213141516171819202122232425262728293031323334 |
- SET(SOURCE_GROUP ${SOURCE_GROUP}\\posix)
- ua_add_architecture("posix")
- list (FIND UA_AMALGAMATION_ARCHITECUTRES "posix" _index)
- if (${_index} GREATER -1 OR "${UA_ARCHITECTURE}" STREQUAL "posix")
- ua_add_architecture_file(${CMAKE_CURRENT_SOURCE_DIR}/ua_clock.c)
- ua_add_architecture_file(${CMAKE_CURRENT_SOURCE_DIR}/ua_architecture_functions.c)
- if("${UA_ARCHITECTURE}" STREQUAL "posix")
- if(NOT CYGWIN AND NOT QNXNTO AND (NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD"))
- ua_architecture_add_definitions(-Wshadow -Wconversion -fvisibility=hidden -fPIC)
- endif()
- if(QNXNTO)
- ua_architecture_append_to_library(socket c stdc++)
- else()
- ua_architecture_append_to_library(m)
- if(UA_ENABLE_MULTITHREADING OR UA_BUILD_UNIT_TESTS)
- ua_architecture_append_to_library(pthread)
- endif()
- if(NOT APPLE AND (NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD"))
- ua_architecture_append_to_library(rt)
- endif()
- endif()
- ua_include_directories(${CMAKE_CURRENT_SOURCE_DIR})
- endif()
- endif()
|