forked from CxxTest/cxxtest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50f9f4a
commit 35b0953
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,36 @@ | ||
IF (DEFINED FIND_CXXTEST_CMAKE_INCLUDED) | ||
RETURN() | ||
ENDIF (DEFINED FIND_CXXTEST_CMAKE_INCLUDED) | ||
SET(FIND_CXXTEST_CMAKE_INCLUDED true) | ||
|
||
FIND_PROGRAM(CXXTESTGEN | ||
NAMES cxxtestgen | ||
PATHS ./cxxtest/bin/ | ||
PATHS "${CXXTEST_PATH}/bin" | ||
"${PROJECT_SOURCE_DIR}/cxxtest/bin" | ||
"${PROJECT_SOURCE_DIR}/lib/cxxtest/bin" | ||
"${PROJECT_BINARY_DIR}/cxxtest/bin" | ||
"${PROJECT_BINARY_DIR}/lib/cxxtest/bin" | ||
/usr/bin | ||
/bin | ||
) | ||
|
||
FIND_PATH(CXXTEST_INCLUDES | ||
NAMES "cxxtest/TestSuite.h" | ||
PATHS "${CXXTEST_PATH}" | ||
"${PROJECT_SOURCE_DIR}/cxxtest/" | ||
"${PROJECT_SOURCE_DIR}/lib/cxxtest/" | ||
) | ||
|
||
IF(NOT CXXTESTGEN) | ||
MESSAGE(FATAL_ERROR "Unable to find 'cxxtestgen'") | ||
SET(CXXTEST_FOUND false) | ||
ELSEIF(NOT CXXTEST_INCLUDES) | ||
SET(CXXTEST_FOUND false) | ||
ELSE(NOT CXXTESTGEN) | ||
SET(CXXTEST_FOUND true) | ||
SET(CXXTEST_ROOT ${CXXTEST_INCLUDES}) | ||
ENDIF(NOT CXXTESTGEN) | ||
|
||
SET(CXXTEST_CMAKE_MODULES_PATH "${CMAKE_CURRENT_LIST_DIR}") | ||
INCLUDE("${CXXTEST_CMAKE_MODULES_PATH}/CxxTest.cmake") | ||
|