High Performance OPC UA Server SDK  1.1.1.177
CMakeLists.txt
project(client_lesson01 C)
cmake_minimum_required(VERSION 3.0)
# include sdk.cmake delivered with the SDK
include(../../../sdk.cmake)
include(InstallIfNewer)
# create list of source files
set(SOURCES main.c sampleclient.c)
add_executable(${PROJECT_NAME} ${SOURCES} ${SDK_BSP_SRCS} ${SDK_ASM_SRCS})
# specify libraries to link
target_link_libraries(${PROJECT_NAME}
${SDK_CLIENT_LIBRARIES}
${SDK_BASE_LIBRARIES}
${OS_LIBS}
${SDK_SYSTEM_LIBS}
)
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
# MS Visual Studio settings
include(VSSetDebugConfig)
vs_set_debug_config(TARGET ${PROJECT_NAME}
SET_ALL_BUILD
INSTALL_DIR_EXECUTABLE
WORKING_DIR "${CMAKE_INSTALL_PREFIX}/bin")
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER Applications/Examples/GettingStarted)