What would really make me happy is cmake support for this in the google-mock Ubuntu package.
i.e. something like this inside "/usr/lib/$arch/cmake/GMock/GMockConfig.cmake"
# Build with system gmock and embedded gtest
set (GMOCK_INCLUDE_DIR "/usr/include/gmock/include" CACHE PATH "gmock source include directory")
set (GMOCK_SOURCE_DIR "/usr/src/gmock" CACHE PATH "gmock source directory")
set (GTEST_INCLUDE_DIR "${GMOCK_SOURCE_DIR}/gtest/include" CACHE PATH "gtest source include directory")
What would really make me happy is cmake support for this in the google-mock Ubuntu package.
i.e. something like this inside "/usr/lib/ $arch/cmake/ GMock/GMockConf ig.cmake"
# Build with system gmock and embedded gtest gmock/include" CACHE PATH "gmock source include directory") SOURCE_ DIR}/gtest/ include" CACHE PATH "gtest source include directory")
set (GMOCK_INCLUDE_DIR "/usr/include/
set (GMOCK_SOURCE_DIR "/usr/src/gmock" CACHE PATH "gmock source directory")
set (GTEST_INCLUDE_DIR "${GMOCK_
add_subdirector y(${GMOCK_ SOURCE_ DIR} "${CMAKE_ CURRENT_ BINARY_ DIR}/gmock" )
set(GTEST_LIBRARIES gtest) MAIN_LIBRARIES gtest_main)
set(GTEST_
set(GMOCK_LIBRARIES gmock gmock_main)
That way I can just go:
find_package(GMock)
include_directories ( INCLUDE_ DIR} INCLUDE_ DIR}
${GMOCK_
${GTEST_
)
It also means you will be able to help use it more easily in the future.