CMakeLists.txt 717 字节
Newer Older
H
Haojun Liao 已提交
1 2 3 4 5 6 7

MESSAGE(STATUS "build planner unit test")

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

8 9 10 11 12 13
ADD_EXECUTABLE(plannerTest
        ${SOURCE_LIST}
        "${SOURCE_LIST}/../../../parser/test/mockCatalog.cpp"
        "${SOURCE_LIST}/../../../parser/test/mockCatalogService.cpp"
)

H
Haojun Liao 已提交
14 15
TARGET_LINK_LIBRARIES(
        plannerTest
H
Haojun Liao 已提交
16
        PUBLIC os util common planner parser catalog transport gtest function qcom
H
Haojun Liao 已提交
17 18 19 20 21 22
)

TARGET_INCLUDE_DIRECTORIES(
        plannerTest
        PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/planner/"
        PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/planner/inc"
23
        PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/parser/test"
H
Haojun Liao 已提交
24
)