Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #10408 Rework MantidWidgetsTest makefile
- Loading branch information
Harry Jeffery
committed
Oct 24, 2014
1 parent
48d737a
commit e9f5645
Showing
1 changed file
with
7 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
if ( PYUNITTEST_FOUND ) | ||
pyunittest_add_test (${CMAKE_CURRENT_SOURCE_DIR} MantidWidgetsTest ${TEST_PY_FILES} ) | ||
endif () | ||
|
||
if ( CXXTEST_FOUND ) | ||
include_directories ( SYSTEM ${CXXTEST_INCLUDE_DIR} ${GMOCK_INCLUDE_DIR} ${GTEST_INCLUDE_DIR} ) | ||
|
||
if ( GMOCK_FOUND AND GTEST_FOUND ) | ||
cxxtest_add_test ( MantidWidgetsTest ${TEST_FILES} ${GMOCK_TEST_FILES} ) | ||
target_link_libraries( MantidWidgetsTest MantidWidgets ${GMOCK_LIBRARIES} ${GTEST_LIBRARIES} ) | ||
cxxtest_add_test ( MantidWidgetsTest ${TEST_FILES} ) | ||
target_link_libraries( MantidWidgetsTest MantidWidgets ) | ||
|
||
# Add to the 'UnitTests' group in VS | ||
set_property( TARGET MantidWidgetsTest PROPERTY FOLDER "UnitTests" ) | ||
endif () | ||
# Add to the 'UnitTests' group in VS | ||
set_property( TARGET MantidWidgetsTest PROPERTY FOLDER "UnitTests" ) | ||
endif () | ||
|
||
if ( PYUNITTEST_FOUND ) | ||
pyunittest_add_test (${CMAKE_CURRENT_SOURCE_DIR} MantidWidgetsTest ${TEST_PY_FILES} ) | ||
endif () |