diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-11-04 18:22:27 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2012-11-04 18:22:27 (GMT) |
commit | b878cd6fb4fee4c32bc97a7e63b8d25d2eab30cf (patch) | |
tree | ee125cf13d64db7f2589dac93cb640550c691481 /Modules/FindSquish.cmake | |
parent | 3fe2bc622e75c052e75c351621a8c876070481a3 (diff) | |
download | CMake-b878cd6fb4fee4c32bc97a7e63b8d25d2eab30cf.zip CMake-b878cd6fb4fee4c32bc97a7e63b8d25d2eab30cf.tar.gz CMake-b878cd6fb4fee4c32bc97a7e63b8d25d2eab30cf.tar.bz2 |
Squish: use FPHSA
Alex
Diffstat (limited to 'Modules/FindSquish.cmake')
-rw-r--r-- | Modules/FindSquish.cmake | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Modules/FindSquish.cmake b/Modules/FindSquish.cmake index 032ed97..6f34ccc 100644 --- a/Modules/FindSquish.cmake +++ b/Modules/FindSquish.cmake @@ -119,12 +119,10 @@ else() endif() # record if Squish was found -set(SQUISH_FOUND 1) -foreach(var SQUISH_INSTALL_DIR_FOUND SQUISH_CLIENT_EXECUTABLE_FOUND SQUISH_SERVER_EXECUTABLE_FOUND) - if(NOT ${var}) - set(SQUISH_FOUND 0) - endif() -endforeach() +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Squish REQUIRED_VARS SQUISH_INSTALL_DIR SQUISH_CLIENT_EXECUTABLE SQUISH_SERVER_EXECUTABLE + VERSION_VAR SQUISH_VERSION ) + macro(SQUISH_ADD_TEST testName testAUT testCase envVars testWraper) add_test(${testName} |