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

L
Liu Jicong 已提交
5 6 7
target_sources(tmq
    PRIVATE
    "src/tmq.c"
L
Liu Jicong 已提交
8
)
L
Liu Jicong 已提交
9 10 11 12 13

target_sources(tstream
    PRIVATE
    "src/tstream.c"
)
14 15 16 17 18 19

target_sources(demoapi
    PRIVATE
    "src/demoapi.c"
)

L
Liu Jicong 已提交
20 21 22 23 24 25 26 27
target_link_libraries(tmq
    taos
)

target_link_libraries(tstream
    taos
)

28 29 30 31
target_link_libraries(demoapi
    taos
)

L
Liu Jicong 已提交
32 33 34 35 36
target_include_directories(tmq
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

target_include_directories(tstream
L
Liu Jicong 已提交
37 38 39
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

40 41 42 43 44
target_include_directories(demoapi
    PUBLIC "${TD_SOURCE_DIR}/include/client"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

L
Liu Jicong 已提交
45
SET_TARGET_PROPERTIES(tmq PROPERTIES OUTPUT_NAME tmq)
L
Liu Jicong 已提交
46
SET_TARGET_PROPERTIES(tstream PROPERTIES OUTPUT_NAME tstream)
47
SET_TARGET_PROPERTIES(demoapi PROPERTIES OUTPUT_NAME demoapi)