diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2015-05-03 23:05:14 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2015-05-03 23:05:14 +0000 |
| commit | 20f22e56999d2b90ec2b7a77149748b0c9740dc1 (patch) | |
| tree | 80f0acb3013030ef85b77527ad108262bf76fe59 /CMakeScripts | |
| parent | cmake: move Intl check to 'Files we include' section (diff) | |
| download | inkscape-20f22e56999d2b90ec2b7a77149748b0c9740dc1.tar.gz inkscape-20f22e56999d2b90ec2b7a77149748b0c9740dc1.zip | |
Added base unit test source utilizing Google Test and corresponding CMake support.
(bzr r14100)
Diffstat (limited to 'CMakeScripts')
| -rw-r--r-- | CMakeScripts/DefineDependsandFlags.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index f7c371bae..abad73a4d 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -213,6 +213,14 @@ if(WITH_DBUS) endif() endif() +if(WITH_GTEST) + if(EXISTS "${GMOCK_DIR}" AND IS_DIRECTORY "${GMOCK_DIR}") + + else() + set(WITH_GTEST off) + endif() +endif() + # ---------------------------------------------------------------------------- # CMake's builtin # ---------------------------------------------------------------------------- |
