CMakeLists.txt 1.1 KB
Newer Older
1 2 3 4 5 6 7

MESSAGE(STATUS "build parser unit test")

# GoogleTest requires at least C++11
SET(CMAKE_CXX_STANDARD 11)
AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} SOURCE_LIST)

L
Liu Jicong 已提交
8
ADD_EXECUTABLE(clientTest clientTests.cpp)
9 10
TARGET_LINK_LIBRARIES(
        clientTest
wafwerar's avatar
wafwerar 已提交
11
        PUBLIC os util common transport parser catalog scheduler function gtest taos_static qcom
12 13
)

L
Liu Jicong 已提交
14 15 16
ADD_EXECUTABLE(tmqTest tmqTest.cpp)
TARGET_LINK_LIBRARIES(
        tmqTest
wafwerar's avatar
wafwerar 已提交
17
        PUBLIC os util common transport parser catalog scheduler function gtest taos_static qcom
L
Liu Jicong 已提交
18 19
)

20 21 22 23 24 25
ADD_EXECUTABLE(smlTest smlTest.cpp)
TARGET_LINK_LIBRARIES(
        smlTest
        PUBLIC os util common transport parser catalog scheduler function gtest taos_static qcom
)

26 27
TARGET_INCLUDE_DIRECTORIES(
        clientTest
28 29
        PUBLIC "${TD_SOURCE_DIR}/include/client/"
        PRIVATE "${TD_SOURCE_DIR}/source/client/inc"
30
)
L
Liu Jicong 已提交
31 32 33

TARGET_INCLUDE_DIRECTORIES(
        tmqTest
34 35
        PUBLIC "${TD_SOURCE_DIR}/include/client/"
        PRIVATE "${TD_SOURCE_DIR}/source/client/inc"
L
Liu Jicong 已提交
36
)
37 38 39 40 41 42 43

TARGET_INCLUDE_DIRECTORIES(
        smlTest
        PUBLIC "${TD_SOURCE_DIR}/include/client/"
        PRIVATE "${TD_SOURCE_DIR}/source/client/inc"
)