@@ -42,37 +42,37 @@ if(${pfasst_WITH_MPI})
4242 COMMAND ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 4 ${CMAKE_BINARY_DIR} /tests/examples/advection_diffusion/${test} --gtest_output=xml:${test} _out.xml
4343 )
4444 endforeach (test )
45- else ()
46- set (TESTS
47- test_advection_diffusion
48- )
45+ endif ()
4946
50- foreach ( test ${ TESTS} )
51- message ( STATUS " ${test} " )
52- add_executable ( ${test} ${test} .cpp )
53- if ( NOT FFTW_FOUND)
54- add_dependencies ( ${test} fftw3 )
55- endif ( )
56- if (${pfasst_NUM_DEPENDEND_TARGETS} GREATER 0 )
57- add_dependencies ( ${test} ${pfasst_DEPENDEND_TARGETS} )
58- endif ( )
59- if ( ${pfasst_TESTS_NUM_DEPENDEND_TARGETS} GREATER 0 )
60- add_dependencies (${test} ${pfasst_TESTS_DEPENDEND_TARGETS} )
61- endif ( )
62- target_link_libraries ( ${test}
63- ${3rdparty_DEPENDEND_LIBS}
64- ${TESTS_3rdparty_DEPENDEND_LIBS}
65- ${FFTW_LIBRARIES}
66- ${pfasst_DEPENDEND_LIBS }
67- )
68- if (pfasst_WITH_GCC_PROF AND ${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
69- set_target_properties ( ${test }
70- PROPERTIES COMPILE_FLAGS " ${CMAKE_CXX_FLAGS} -ftest-coverage -fprofile-arcs"
71- LINK_FLAGS "-fprofile-arcs"
72- )
73- endif ()
74- add_test ( NAME ${test}
75- COMMAND ${CMAKE_BINARY_DIR} /tests/examples/advection_diffusion/ ${test} --gtest_output=xml: ${test} _out.xml
47+ set ( TESTS
48+ test_advection_diffusion
49+ )
50+
51+ foreach ( test ${TESTS} )
52+ message ( STATUS " ${test} " )
53+ add_executable (${test} ${test} .cpp )
54+ if ( NOT FFTW_FOUND )
55+ add_dependencies ( ${test} fftw3 )
56+ endif ( )
57+ if (${pfasst_NUM_DEPENDEND_TARGETS} GREATER 0 )
58+ add_dependencies ( ${test} ${pfasst_DEPENDEND_TARGETS} )
59+ endif ()
60+ if ( ${pfasst_TESTS_NUM_DEPENDEND_TARGETS} GREATER 0)
61+ add_dependencies ( ${test} ${pfasst_TESTS_DEPENDEND_TARGETS} )
62+ endif ()
63+ target_link_libraries ( ${test }
64+ ${3rdparty_DEPENDEND_LIBS}
65+ ${TESTS_3rdparty_DEPENDEND_LIBS}
66+ ${FFTW_LIBRARIES }
67+ ${pfasst_DEPENDEND_LIBS}
68+ )
69+ if (pfasst_WITH_GCC_PROF AND ${CMAKE_CXX_COMPILER_ID} MATCHES GNU )
70+ set_target_properties ( ${test}
71+ PROPERTIES COMPILE_FLAGS " ${CMAKE_CXX_FLAGS} -ftest-coverage -fprofile-arcs"
72+ LINK_FLAGS "-fprofile-arcs"
7673 )
77- endforeach (test )
78- endif ()
74+ endif ()
75+ add_test (NAME ${test}
76+ COMMAND ${CMAKE_BINARY_DIR} /tests/examples/advection_diffusion/${test} --gtest_output=xml:${test} _out.xml
77+ )
78+ endforeach (test )
0 commit comments