cmake_minimum_required (VERSION 2.6) set(EXTERNALS_DIR ../../extern) # by default, do not build any tests, examples or shared libraries set(BUILD_TESTS OFF CACHE BOOL "Enable tests") set(BUILD_EXAMPLES OFF CACHE BOOL "Enable examples") set(BUILD_SHARED_LIBS OFF CACHE BOOL "Enable shared libs") # build open62541 set(OPEN62541_DIR ${EXTERNALS_DIR}/open62541) # set(UA_NAMESPACE_ZERO FULL CACHE STRING "open62541 namespace zero MINIMAL, REDUCED, FULL") # set(UA_ENABLE_PUBSUB ON CACHE BOOL "Enable open62541 PubSub information model") # set(UA_ENABLE_PUBSUB_INFORMATIONMODEL ON CACHE BOOL "Enable open62541 PubSub information model") add_subdirectory(${OPEN62541_DIR} open62541) # build the ua-stress-test itself set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/ua-stress-test") set(UASTRESSTEST_SOURCE_FILES helper_functions.cpp main.cpp ) add_executable(ua-stress-test ${UASTRESSTEST_SOURCE_FILES}) target_link_libraries(ua-stress-test PUBLIC open62541 config) file(COPY config.cfg DESTINATION "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")