Skip to content
Snippets Groups Projects
Commit d1b6a52f authored by Nicky's avatar Nicky
Browse files

Googlemock target

parent ef989bce
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -4,25 +4,26 @@ include(Linking)
use_prebuilt_binary(googlemock)
set(GOOGLEMOCK_INCLUDE_DIRS
${LIBS_PREBUILT_DIR}/include)
if( TARGET googlemock::googlemock )
return()
endif()
create_target( googlemock::googlemock )
set_target_include_dirs( googlemock::googlemock
${LIBS_PREBUILT_DIR}/include
)
if (LINUX)
# VWR-24366: gmock is underlinked, it needs gtest.
set(GOOGLEMOCK_LIBRARIES
gmock -Wl,--no-as-needed
gtest -Wl,--as-needed)
set_target_libraries( googlemock::googlemock gmock gtest)
elseif(WINDOWS)
set(GOOGLEMOCK_LIBRARIES
gmock)
set(GOOGLEMOCK_INCLUDE_DIRS
${LIBS_PREBUILT_DIR}/include
${LIBS_PREBUILT_DIR}/include/gmock
${LIBS_PREBUILT_DIR}/include/gmock/boost/tr1/tr1)
set_target_libraries( googlemock::googlemock gmock)
set_target_include_dirs( googlemock::googlemock
${LIBS_PREBUILT_DIR}/include
${LIBS_PREBUILT_DIR}/include/gmock
${LIBS_PREBUILT_DIR}/include/gmock/boost/tr1/tr1 )
elseif(DARWIN)
set(GOOGLEMOCK_LIBRARIES
gmock
gtest)
set_target_libraries( googlemock::googlemock gmock gtest)
endif(LINUX)
......@@ -45,7 +45,7 @@ INCLUDE(GoogleMock)
)
SET(alltest_LIBRARIES
llcommon
${GOOGLEMOCK_LIBRARIES}
googlemock::googlemock
${PTHREAD_LIBRARY}
${WINDOWS_LIBRARIES}
)
......@@ -206,14 +206,11 @@ FUNCTION(LL_ADD_INTEGRATION_TEST
)
SET(libraries
${LEGACY_STDIO_LIBS}
${library_dependencies}
${BOOST_FIBER_LIBRARY}
${BOOST_CONTEXT_LIBRARY}
${BOOST_SYSTEM_LIBRARY}
${GOOGLEMOCK_LIBRARIES}
${PTHREAD_LIBRARY}
)
${LEGACY_STDIO_LIBS}
${library_dependencies}
googlemock::googlemock
${PTHREAD_LIBRARY}
)
# Add test executable build target
if(TEST_DEBUG)
......
......@@ -7,11 +7,6 @@ include(LLCommon)
include(bugsplat)
include(Boost)
include_directories(
${LLCOMMON_INCLUDE_DIRS}
${LLCOMMON_SYSTEM_INCLUDE_DIRS}
)
set(llmath_SOURCE_FILES
llbbox.cpp
llbboxlocal.cpp
......
......@@ -74,6 +74,7 @@ target_link_libraries(lltest
llxml
llcommon
llcorehttp
googlemock::googlemock
${WINDOWS_LIBRARIES}
${DL_LIBRARY}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment