Skip to content

Commit

Permalink
Refs #10408 Rework MantidWidgetsTest makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Oct 24, 2014
1 parent 48d737a commit e9f5645
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions Code/Mantid/MantidQt/MantidWidgets/test/CMakeLists.txt
@@ -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 ()

0 comments on commit e9f5645

Please sign in to comment.