CMakeLists.txt 681 字节
Newer Older
H
Hongze Cheng 已提交
1
aux_source_directory(src EXECUTOR_SRC)
2 3 4 5 6
#add_library(executor ${EXECUTOR_SRC})

add_library(executor STATIC ${EXECUTOR_SRC})
#set_target_properties(executor PROPERTIES
#        IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/libexecutor.a"
wafwerar's avatar
wafwerar 已提交
7
#        INTERFACE_INCLUDE_DIRECTORIES "${TD_SOURCE_DIR}/include/libs/executor"
8
#        )
H
Haojun Liao 已提交
9

10
target_link_libraries(executor
dengyihao's avatar
dengyihao 已提交
11
            PRIVATE os util common function parser planner qcom vnode scalar nodes index
12 13
        )

H
Hongze Cheng 已提交
14
target_include_directories(
15
        executor
wafwerar's avatar
wafwerar 已提交
16
        PUBLIC "${TD_SOURCE_DIR}/include/libs/executor"
17
        PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
H
Haojun Liao 已提交
18 19
)

H
Hongze Cheng 已提交
20
if(${BUILD_TEST})
21
    ADD_SUBDIRECTORY(test)
H
Hongze Cheng 已提交
22
endif(${BUILD_TEST})