33 lines
696 B
CMake
33 lines
696 B
CMake
add_subdirectory(ti5_motor)
|
|
|
|
find_package(glog REQUIRED)
|
|
find_package(protobuf REQUIRED)
|
|
|
|
# --------------------------------------------------------
|
|
# Unit test
|
|
# --------------------------------------------------------
|
|
include_directories(
|
|
${CMAKE_SOURCE_DIR}/third_party/gtest/1.17.0/include
|
|
)
|
|
|
|
link_directories(
|
|
${CMAKE_SOURCE_DIR}/third_party/gtest/1.17.0/lib
|
|
)
|
|
|
|
|
|
add_executable(motor_manager_test
|
|
${CMAKE_CURRENT_SOURCE_DIR}/motor_manager_test.cpp
|
|
)
|
|
|
|
|
|
target_link_libraries(motor_manager_test
|
|
PRIVATE
|
|
cmvr_es::device::canbus
|
|
cmvr_es::device::ti5motor
|
|
gtest
|
|
gtest_main
|
|
pthread
|
|
glog::glog
|
|
proto-objects
|
|
)
|