Skip to content

Commit

Permalink
AGW: ubuntu: fix test-oai compilation. (#4909)
Browse files Browse the repository at this point in the history
This commit adds required gmock lib path.

Signed-off-by: Pravin B Shelar <pbshelar@fb.com>
  • Loading branch information
pshelar authored and pull[bot] committed Oct 30, 2021
1 parent ca25842 commit 1298109
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lte/gateway/c/oai/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
find_package(Check REQUIRED)
find_package(Threads REQUIRED)

include_directories("/usr/src/googletest/googlemock/include/")
set(MME_APP_UE_CONTEXT_IMSI_SRC
test_mme_app_ue_context.c
)
Expand Down
3 changes: 2 additions & 1 deletion lte/gateway/c/oai/test/openflow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ add_compile_options(-std=c++11)
set(OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}")

include_directories("${PROJECT_SOURCE_DIR}/openflow/controller")
link_directories(/usr/src/googletest/googlemock/lib/)
add_executable(openflow_controller_test test_openflow_controller.cpp)
add_executable(imsi_encoder_test test_imsi_encoder.cpp)
add_executable(gtp_app_test test_gtp_app.cpp)
Expand All @@ -12,7 +13,7 @@ target_link_libraries(OPENFLOW_TEST
COMMON
lfds710
LIB_OPENFLOW_CONTROLLER LIB_BSTR LIB_HASHTABLE LIB_ITTI LIB_S1AP TASK_S1AP
gmock_main pthread rt)
gmock_main gtest gtest_main gmock pthread rt)

set_target_properties(OPENFLOW_TEST PROPERTIES LINKER_LANGUAGE CXX)

Expand Down

0 comments on commit 1298109

Please sign in to comment.