Skip to content

lefebvre/testframework

Repository files navigation

testframework

CMake/TriBITS project integration google test and qt application.

Integrating into a TriBITS project

  1. Add 'testframework' repo to the projects ExtraRepositoriesList.cmake
TRIBITS_PROJECT_DEFINE_EXTRA_REPOSITORIES(
  TESTF_REPO "packages/testframework" GIT https:/github.com/lefebvre/testframework "NOPACKAGES" Experimental
)
  1. Include the 'packages/testframework/setup' into your project's CallbackSetupExtraOptions.cmake MACRO(TRIBITS_REPOSITORY_SETUP_EXTRA_OPTIONS)
ADD_SUBDIRECTORY(${${PROJECT_NAME}_SOURCE_DIR}/packages/testframework/setup)
  1. Include the GoogleTest module in you tests CMakeLists.txt file.
INCLUDE(GoogleTest)
  1. Add a test using the 'ADD_GOOGLE_TEST' macro.
ADD_GOOGLE_TEST(tstTest.cc)

Please read the ADD_GOOGLE_TEST documentation for option details.

About

CMake/TriBITS project integration google test and qt application.

Resources

License

Stars

Watchers

Forks

Packages

No packages published