CMakeLists.txt 446 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11

MESSAGE(STATUS "build nodes unit test")

# GoogleTest requires at least C++11
SET(CMAKE_CXX_STANDARD 11)
AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} SOURCE_LIST)

ADD_EXECUTABLE(nodesTest ${SOURCE_LIST})

TARGET_INCLUDE_DIRECTORIES(
        nodesTest
wafwerar's avatar
wafwerar 已提交
12 13
        PUBLIC "${TD_SOURCE_DIR}/include/nodes/"
        PRIVATE "${TD_SOURCE_DIR}/source/nodes/inc"
14 15 16 17 18 19
)

TARGET_LINK_LIBRARIES(
        nodesTest
        PUBLIC os util common nodes gtest
)