-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
44 lines (33 loc) · 1.75 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
#
# build
#
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
LIST(APPEND OpcUaSensorInterface_SRC
${PROJECT_SOURCE_DIR}/../../opcua-plugin/opcua-sensor-interface/DeviceData.cpp
${PROJECT_SOURCE_DIR}/../../opcua-plugin/opcua-sensor-interface/DeviceData.h
${PROJECT_SOURCE_DIR}/../../opcua-plugin/opcua-sensor-interface/DeviceDataFile.cpp
${PROJECT_SOURCE_DIR}/../../opcua-plugin/opcua-sensor-interface/DeviceDataFile.h
${PROJECT_SOURCE_DIR}/../../opcua-plugin/opcua-sensor-interface/Device.h
${PROJECT_SOURCE_DIR}/../../opcua-plugin/opcua-sensor-interface/DeviceDataValue.h
${PROJECT_SOURCE_DIR}/../../opcua-plugin/opcua-sensor-interface/DeviceDataLWM2M.cpp
${PROJECT_SOURCE_DIR}/../../opcua-plugin/opcua-sensor-interface/DeviceDataLWM2M.h
)
add_library(OpcUaSensorInterface SHARED ${OpcUaSensorInterface_SRC})
target_link_libraries(
OpcUaSensorInterface
${CMAKE_DL_LIBS}
${Boost_LIBRARIES}
)
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
#
# install
#
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
file(GLOB INC_OpcUaSensorInterface ${PROJECT_SOURCE_DIR}/OpcUaSensorInterface/*.h)
install(TARGETS OpcUaSensorInterface DESTINATION ${LIB_DIR}/OpcUaStack)
install(FILES ${INC_OpcUaSensorInterface} DESTINATION ${INC_DIR}/OpcUaStack/OpcUaSensorInterface)