-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re #5767. More CMake re-jigging to get include paths correct/minimal.
- Loading branch information
1 parent
2f23575
commit 65c4ea8
Showing
22 changed files
with
195 additions
and
603 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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
if ( CXXTEST_FOUND ) | ||
include_directories ( SYSTEM ${CXXTEST_INCLUDE_DIR} ${GMOCK_INCLUDE_DIR} ${GTEST_INCLUDE_DIR} ) | ||
|
||
include_directories ( ../../../Framework/TestHelpers/inc | ||
../../../Framework/DataObjects/inc ) | ||
|
||
# This variable is used within the cxxtest_add_test macro to build these helper classes into the test executable. | ||
# It will go out of scope at the end of this file so doesn't need un-setting | ||
set ( TESTHELPER_SRCS ../../../Framework/TestHelpers/src/ComponentCreationHelper.cpp | ||
../../../Framework/TestHelpers/src/WorkspaceCreationHelper.cpp ) | ||
|
||
cxxtest_add_test ( MantidQtAPITest ${TEST_FILES} ) | ||
target_link_libraries( MantidQtAPITest MantidQtAPI DataObjects) | ||
add_dependencies( GUITests MantidQtAPITest ) | ||
|
||
# Add to the 'UnitTests' group in VS | ||
set_property( TARGET MantidQtAPITest PROPERTY FOLDER "UnitTests" ) | ||
endif () |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
if ( CXXTEST_FOUND ) | ||
include_directories ( SYSTEM ${CXXTEST_INCLUDE_DIR} ${GMOCK_INCLUDE_DIR} ${GTEST_INCLUDE_DIR} ) | ||
|
||
include_directories( ../../../Framework/TestHelpers/inc ../../../Framework/DataObjects/inc ) | ||
|
||
if ( GMOCK_FOUND AND GTEST_FOUND ) | ||
cxxtest_add_test ( CustomInterfacesTest ${TEST_FILES} ${GMOCK_TEST_FILES} ) | ||
target_link_libraries( CustomInterfacesTest CustomInterfaces DataObjects ${GMOCK_LIBRARIES} ${GTEST_LIBRARIES} ) | ||
|
||
add_dependencies( GUITests CustomInterfacesTest ) | ||
# Add to the 'UnitTests' group in VS | ||
set_property( TARGET CustomInterfacesTest PROPERTY FOLDER "UnitTests" ) | ||
endif () | ||
|
||
endif () | ||
|
||
|
Oops, something went wrong.