Skip to content
Snippets Groups Projects
Commit a25f5baf authored by Felix Schindler's avatar Felix Schindler
Browse files

[cmake] add COMMON_HEADER and GRID_LIBS to tests

parent 4b0791d8
No related branches found
No related tags found
No related merge requests found
...@@ -117,9 +117,9 @@ macro(BEGIN_TESTCASES) ...@@ -117,9 +117,9 @@ macro(BEGIN_TESTCASES)
file( GLOB test_sources "${CMAKE_CURRENT_SOURCE_DIR}/*.cc" ) file( GLOB test_sources "${CMAKE_CURRENT_SOURCE_DIR}/*.cc" )
foreach( source ${test_sources} ) foreach( source ${test_sources} )
get_filename_component(testname ${source} NAME_WE) get_filename_component(testname ${source} NAME_WE)
add_executable( test_${testname} ${source} ) add_executable( test_${testname} ${source} ${COMMON_HEADER} )
add_test( test_${testname} ${CMAKE_CURRENT_BINARY_DIR}/test_${testname} ) add_test( test_${testname} ${CMAKE_CURRENT_BINARY_DIR}/test_${testname} )
target_link_libraries( test_${testname} ${ARGN} ${COMMON_LIBS} gtest_dune_stuff ) target_link_libraries( test_${testname} ${ARGN} ${COMMON_LIBS} ${GRID_LIBS} gtest_dune_stuff )
list(APPEND testnames test_${testname} ) list(APPEND testnames test_${testname} )
endforeach( source ) endforeach( source )
endmacro(BEGIN_TESTCASES) endmacro(BEGIN_TESTCASES)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment