summaryrefslogtreecommitdiffstats
path: root/Modules/FindCxxTest.cmake
diff options
context:
space:
mode:
authorPhilip Lowman <philip@yhbt.com>2009-03-03 01:29:38 (GMT)
committerPhilip Lowman <philip@yhbt.com>2009-03-03 01:29:38 (GMT)
commitf0edae98ea1a4f90370c42924dbb0856e6fedd47 (patch)
tree553a096753bcd7c4f629326b17e2e5f5df5317ce /Modules/FindCxxTest.cmake
parent82e92916290e1079f409687dfbd92131db4bb03d (diff)
downloadCMake-f0edae98ea1a4f90370c42924dbb0856e6fedd47.zip
CMake-f0edae98ea1a4f90370c42924dbb0856e6fedd47.tar.gz
CMake-f0edae98ea1a4f90370c42924dbb0856e6fedd47.tar.bz2
ENH: Detect perl & python scripts based on CXXTEST_INCLUDE_DIR (patch from
Tyler Roscoe on mailing list).
Diffstat (limited to 'Modules/FindCxxTest.cmake')
-rw-r--r--Modules/FindCxxTest.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/Modules/FindCxxTest.cmake b/Modules/FindCxxTest.cmake
index a022bfc..8964bc6 100644
--- a/Modules/FindCxxTest.cmake
+++ b/Modules/FindCxxTest.cmake
@@ -64,6 +64,9 @@
# };
#
#
+# Version 1.2 (3/2/08)
+# Included patch from Tyler Roscoe to have the perl & python binaries
+# detected based on CXXTEST_INCLUDE_DIR
# Version 1.1 (2/9/08)
# Clarified example to illustrate need to call target_link_libraries()
# Changed commands to lowercase
@@ -117,8 +120,10 @@ endmacro(CXXTEST_ADD_TEST)
#=============================================================
find_path(CXXTEST_INCLUDE_DIR cxxtest/TestSuite.h)
-find_program(CXXTEST_PERL_TESTGEN_EXECUTABLE cxxtestgen.pl)
-find_program(CXXTEST_PYTHON_TESTGEN_EXECUTABLE cxxtestgen.py)
+find_program(CXXTEST_PERL_TESTGEN_EXECUTABLE cxxtestgen.pl
+ PATHS ${CXXTEST_INCLUDE_DIR})
+find_program(CXXTEST_PYTHON_TESTGEN_EXECUTABLE cxxtestgen.py
+ PATHS ${CXXTEST_INCLUDE_DIR})
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CxxTest DEFAULT_MSG CXXTEST_INCLUDE_DIR)