CMakeLists.txt 518 字节
Newer Older
L
Liu Jicong 已提交
1 2
add_executable(tmq "")
add_executable(tstream "")
L
Liu Jicong 已提交
3

L
Liu Jicong 已提交
4 5 6
target_sources(tmq
    PRIVATE
    "src/tmq.c"
L
Liu Jicong 已提交
7
)
L
Liu Jicong 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

target_sources(tstream
    PRIVATE
    "src/tstream.c"
)
target_link_libraries(tmq
    taos
)

target_link_libraries(tstream
    taos
)

target_include_directories(tmq
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

target_include_directories(tstream
L
Liu Jicong 已提交
26 27 28 29
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

SET_TARGET_PROPERTIES(tmq PROPERTIES OUTPUT_NAME tmq)
L
Liu Jicong 已提交
30
SET_TARGET_PROPERTIES(tstream PROPERTIES OUTPUT_NAME tstream)