CMakeLists.txt 1.4 KB
Newer Older
1
aux_source_directory(src FUNCTION_SRC)
2
list(REMOVE_ITEM FUNCTION_SRC src/udfd.c)
S
monitor  
Shengliang Guan 已提交
3
add_library(function STATIC ${FUNCTION_SRC})
4 5
target_include_directories(
    function
S
shenglian zhou 已提交
6
    PUBLIC
wafwerar's avatar
wafwerar 已提交
7 8
        "${TD_SOURCE_DIR}/include/libs/function"
        "${TD_SOURCE_DIR}/contrib/libuv/include"
9 10 11 12
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

target_link_libraries(
13
    function
14
    PRIVATE os util common nodes scalar
S
shenglian zhou 已提交
15
    PUBLIC uv_a
16
)
17

S
shenglian zhou 已提交
18 19 20
add_executable(runUdf test/runUdf.c)
target_include_directories(
        runUdf
S
shenglian zhou 已提交
21
        PUBLIC
wafwerar's avatar
wafwerar 已提交
22 23 24
            "${TD_SOURCE_DIR}/include/libs/function"
            "${TD_SOURCE_DIR}/contrib/libuv/include"
            "${TD_SOURCE_DIR}/include/os"
S
shenglian zhou 已提交
25 26 27 28
        PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)
target_link_libraries(
        runUdf
S
shenglian zhou 已提交
29
        PUBLIC uv_a
S
shenglian zhou 已提交
30 31 32 33 34 35
        PRIVATE os util common nodes function
)

add_library(udf1 MODULE test/udf1.c)
target_include_directories(
        udf1
S
shenglian zhou 已提交
36
        PUBLIC
wafwerar's avatar
wafwerar 已提交
37 38
            "${TD_SOURCE_DIR}/include/libs/function"
            "${TD_SOURCE_DIR}/include/os"
S
shenglian zhou 已提交
39 40 41 42
        PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

#SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/build/bin)
43 44 45
add_executable(udfd src/udfd.c)
target_include_directories(
        udfd
S
shenglian zhou 已提交
46
        PUBLIC
wafwerar's avatar
wafwerar 已提交
47 48
            "${TD_SOURCE_DIR}/include/libs/function"
            "${TD_SOURCE_DIR}/contrib/libuv/include"
49 50 51 52 53
        PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

target_link_libraries(
        udfd
S
shenglian zhou 已提交
54
        PUBLIC uv_a
55
        PRIVATE os util common nodes function
S
shenglian zhou 已提交
56 57
)