CMakeLists.txt 850 字节
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)

H
Haojun Liao 已提交
8
ADD_EXECUTABLE(clientTest clientTests.cpp)
9 10
TARGET_LINK_LIBRARIES(
        clientTest
H
Haojun Liao 已提交
11 12 13 14 15 16 17
        PUBLIC os util common transport parser catalog scheduler function gtest taos qcom
)

ADD_EXECUTABLE(tmqTest tmqTest.cpp)
TARGET_LINK_LIBRARIES(
        tmqTest
        PUBLIC os util common transport parser catalog scheduler function gtest taos qcom
18 19 20 21 22 23 24
)

TARGET_INCLUDE_DIRECTORIES(
        clientTest
        PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/client/"
        PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/client/inc"
)
H
Haojun Liao 已提交
25 26 27 28 29 30

TARGET_INCLUDE_DIRECTORIES(
        tmqTest
        PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/client/"
        PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/client/inc"
)