TarsCloud_TarsCpp/unit-test/CMakeLists.txt

17 lines
538 B
CMake
Raw Normal View History

2021-08-23 15:40:10 +08:00
project(unit-test)
2021-10-17 12:05:04 +08:00
include_directories(${servant_SOURCE_DIR}/protocol/framework)
include_directories(${servant_SOURCE_DIR}/protocol/servant)
2021-08-23 15:40:10 +08:00
include_directories(${CMAKE_BINARY_DIR}/src/gtest/include)
link_directories(${CMAKE_BINARY_DIR}/src/gtest/lib)
link_directories(${CMAKE_BINARY_DIR}/src/gtest/lib64)
include_directories(./)
build_tars_server("unit-test" "")
add_definitions(-DCMAKE_SOURCE_DIR="${PROJECT_SOURCE_DIR}")
target_link_libraries(unit-test ${LIB_GTEST})
add_dependencies(unit-test FRAMEWORK-PROTOCOL)