Skip to content

Commit

Permalink
Put back gtest linking
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Feb 10, 2017
1 parent 3d4e8b5 commit 9db8d35
Show file tree
Hide file tree
Showing 23 changed files with 42 additions and 19 deletions.
3 changes: 2 additions & 1 deletion Framework/API/test/CMakeLists.txt
Expand Up @@ -25,7 +25,8 @@ if ( CXXTEST_FOUND )
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${MUPARSER_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )

add_dependencies ( FrameworkTests APITest )
# Test data
Expand Down
3 changes: 2 additions & 1 deletion Framework/Algorithms/test/CMakeLists.txt
Expand Up @@ -51,7 +51,8 @@ if ( CXXTEST_FOUND )
Nexus
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )
add_dependencies ( AlgorithmsTest Crystal CurveFitting )
add_dependencies ( FrameworkTests AlgorithmsTest )
# Test data
Expand Down
3 changes: 2 additions & 1 deletion Framework/Beamline/test/CMakeLists.txt
Expand Up @@ -5,7 +5,8 @@ if ( CXXTEST_FOUND )
target_link_libraries( BeamlineTest LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME}
Beamline
${Boost_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )

add_dependencies ( FrameworkTests BeamlineTest )
# Add to the 'FrameworkTests' group in VS
Expand Down
3 changes: 2 additions & 1 deletion Framework/Crystal/test/CMakeLists.txt
Expand Up @@ -22,7 +22,8 @@ if ( CXXTEST_FOUND )
MDAlgorithms
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )
add_dependencies ( CrystalTest Algorithms CurveFitting )
add_dependencies ( FrameworkTests CrystalTest )
# Test data
Expand Down
3 changes: 2 additions & 1 deletion Framework/CurveFitting/test/CMakeLists.txt
Expand Up @@ -24,7 +24,8 @@ if ( CXXTEST_FOUND )
${GSL_LIBRARIES}
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )
add_dependencies ( CurveFittingTest Algorithms )
add_dependencies ( FrameworkTests CurveFittingTest )
# Test data
Expand Down
3 changes: 2 additions & 1 deletion Framework/DataObjects/test/CMakeLists.txt
Expand Up @@ -27,7 +27,8 @@ if ( CXXTEST_FOUND )
${JSONCPP_LIBRARIES}
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )
# Specify implicit dependency, but don't link to it
add_dependencies ( FrameworkTests DataObjectsTest )
# Add to the 'FrameworkTests' group in VS
Expand Down
3 changes: 2 additions & 1 deletion Framework/Geometry/test/CMakeLists.txt
Expand Up @@ -20,7 +20,8 @@ if ( CXXTEST_FOUND )
${GSL_LIBRARIES}
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )

add_dependencies ( FrameworkTests GeometryTest )
# Add to the 'FrameworkTests' group in VS
Expand Down
3 changes: 2 additions & 1 deletion Framework/HistogramData/test/CMakeLists.txt
Expand Up @@ -5,7 +5,8 @@ if ( CXXTEST_FOUND )
target_link_libraries( HistogramDataTest LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME}
HistogramData
${Boost_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )

add_dependencies ( FrameworkTests HistogramDataTest )
# Add to the 'FrameworkTests' group in VS
Expand Down
3 changes: 2 additions & 1 deletion Framework/Indexing/test/CMakeLists.txt
Expand Up @@ -5,7 +5,8 @@ if ( CXXTEST_FOUND )
target_link_libraries( IndexingTest LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME}
Indexing
${Boost_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )

add_dependencies ( FrameworkTests IndexingTest )
# Add to the 'FrameworkTests' group in VS
Expand Down
1 change: 1 addition & 0 deletions Framework/Kernel/test/CMakeLists.txt
Expand Up @@ -15,6 +15,7 @@ if ( CXXTEST_FOUND )
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES}
${JSONCPP_LIBRARIES}
${TBB_LIBRARIES}
${TBB_MALLOC_LIBRARIES}
Expand Down
1 change: 1 addition & 0 deletions Framework/MDAlgorithms/test/CMakeLists.txt
Expand Up @@ -29,6 +29,7 @@ if ( CXXTEST_FOUND )
${POCO_LIBRARIES}
${MUPARSER_LIBRARIES}
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES}
${NEXUS_LIBRARIES}
${HDF5_LIBRARIES} )

Expand Down
3 changes: 2 additions & 1 deletion Framework/RemoteAlgorithms/test/CMakeLists.txt
Expand Up @@ -9,7 +9,8 @@ if ( CXXTEST_FOUND )
RemoteAlgorithms
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )
add_dependencies ( FrameworkTests RemoteAlgorithmsTest )
# Test data. Not using any for now. Remember to uncomment if data is added for these remote alg. tests
# add_dependencies ( RemoteAlgorithmsTest StandardTestData )
Expand Down
3 changes: 2 additions & 1 deletion Framework/RemoteJobManagers/test/CMakeLists.txt
Expand Up @@ -8,7 +8,8 @@ if ( CXXTEST_FOUND )
RemoteJobManagers
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )
add_dependencies ( FrameworkTests RemoteJobManagersTest )
# Test data. Not using any for now. Remember to uncomment if data is added for these remote job managers
# add_dependencies ( RemoteJobManagersTest StandardTestData )
Expand Down
3 changes: 2 additions & 1 deletion Framework/SINQ/test/CMakeLists.txt
Expand Up @@ -16,7 +16,8 @@ if ( CXXTEST_FOUND )
SINQ
CurveFitting
${MANTIDLIBS}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )

# Test data
add_dependencies ( PSISINQTest StandardTestData )
Expand Down
3 changes: 2 additions & 1 deletion Framework/ScriptRepository/test/CMakeLists.txt
Expand Up @@ -11,7 +11,8 @@ if ( CXXTEST_FOUND )
ScriptRepository
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )

add_dependencies ( FrameworkTests ScriptRepositoryTest )
# Add to the 'FrameworkTests' group in VS
Expand Down
3 changes: 2 additions & 1 deletion Framework/Types/test/CMakeLists.txt
Expand Up @@ -4,7 +4,8 @@ if ( CXXTEST_FOUND )
cxxtest_add_test ( TypesTest ${TEST_FILES} ${GMOCK_TEST_FILES})
target_link_libraries( TypesTest LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME}
${Boost_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )

add_dependencies ( FrameworkTests TypesTest )
# Add to the 'FrameworkTests' group in VS
Expand Down
3 changes: 2 additions & 1 deletion MantidQt/API/test/CMakeLists.txt
Expand Up @@ -25,7 +25,8 @@ if ( CXXTEST_FOUND )
${QWT_LIBRARIES}
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )
add_dependencies( GUITests MantidQtAPITest )

# Add to the 'UnitTests' group in VS
Expand Down
3 changes: 2 additions & 1 deletion MantidQt/CustomInterfaces/test/CMakeLists.txt
Expand Up @@ -24,7 +24,8 @@ if ( CXXTEST_FOUND )
${POCO_LIBRARIES}
${QWT_LIBRARIES}
${QT_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )

add_dependencies( CustomInterfacesTest MDAlgorithms )
# Test data
Expand Down
1 change: 1 addition & 0 deletions MantidQt/MantidWidgets/test/CMakeLists.txt
Expand Up @@ -20,6 +20,7 @@ if ( CXXTEST_FOUND )
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES}
)

# Add to the 'UnitTests' group in VS
Expand Down
3 changes: 2 additions & 1 deletion MantidQt/SliceViewer/CMakeLists.txt
Expand Up @@ -200,7 +200,8 @@ if ( CXXTEST_FOUND )
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${QT_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )

add_dependencies( GUITests SliceViewerTest )
# Add to the 'UnitTests' group in VS
Expand Down
3 changes: 2 additions & 1 deletion MantidQt/SliceViewer/test/CMakeLists.txt
Expand Up @@ -26,7 +26,8 @@ if ( CXXTEST_FOUND )
${QWT_LIBRARIES}
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )

add_dependencies( GUITests SliceViewerTest )

Expand Down
1 change: 1 addition & 0 deletions Vates/VatesAPI/CMakeLists.txt
Expand Up @@ -268,6 +268,7 @@ target_link_libraries( VatesAPITest LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME}
${POCO_LIBRARIES}
${Boost_LIBRARIES}
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES}
${QWT_LIBRARIES}
Qt4::QtCore
)
Expand Down
3 changes: 2 additions & 1 deletion Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt
Expand Up @@ -177,7 +177,8 @@ target_link_libraries( VatesSimpleGuiViewWidgetsTest LINK_PRIVATE ${TCMALLOC_LIB
${MANTID_SUBPROJECT_LIBS}
${POCO_LIBRARIES}
${Boost_LIBRARIES}
${GMOCK_LIBRARIES} )
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )

add_dependencies( AllTests VatesSimpleGuiViewWidgetsTest )
# Add to the 'UnitTests' group in VS
Expand Down

0 comments on commit 9db8d35

Please sign in to comment.