blob: d1909c90df9aa88531c6cae4a71f7a87696bac6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
LINK_DIRECTORIES(${CMAKE_BINARY_DIR})
SET(SS_SAMPLE_THSEN1 "THSensorApp1")
SET(SS_SAMPLE_THSEN1_PATH, "${SS_SAMPLE_PATH}/THSensorApp1");
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/resource/include)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/resource/csdk/stack/include)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/resource/csdk/ocsocket/include)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/resource/csdk/ocrandom/include)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/resource/csdk/logger/include)
INCLUDE_DIRECTORIES(${INCLUDE_INSTALL_DIR}/boost)
INCLUDE_DIRECTORIES(${SS_SDK_PATH})
INCLUDE_DIRECTORIES(${SS_SAMPLE_THSEN1_PATH}/include)
SET(EXTRA_CXXFLAGS "-std=c++0x -DLINUX")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS}")
ADD_EXECUTABLE(${SS_SAMPLE_THSEN1} ${SS_SAMPLE_THSEN1_PATH}/src/ThingResourceServer1.cpp)
TARGET_LINK_LIBRARIES(${SS_SAMPLE_THSEN1} ${SS_SDK} ${OCLIB} ${OCTBSTACK} pthread)
INSTALL(TARGETS ${SS_SAMPLE_THSEN1} DESTINATION ${BIN_INSTALL_DIR})
|