mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2025-01-03 05:22:26 +08:00
17 lines
538 B
CMake
Executable File
17 lines
538 B
CMake
Executable File
project(unit-test)
|
|
|
|
include_directories(${servant_SOURCE_DIR}/protocol/framework)
|
|
include_directories(${servant_SOURCE_DIR}/protocol/servant)
|
|
|
|
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)
|