diff --git a/dune/common/parallel/CMakeLists.txt b/dune/common/parallel/CMakeLists.txt index ff2e13d919af5f9acb0ad6362e5af05b35664e30..7fe50ce5649dc34fb5e3291f6a6f303c6e7b5ff4 100644 --- a/dune/common/parallel/CMakeLists.txt +++ b/dune/common/parallel/CMakeLists.txt @@ -12,9 +12,3 @@ install(FILES selection.hh DESTINATION include/dune/common/parallel) -add_test(indexsettest indexsettest) -add_test(selectiontest selectiontest) -if(MPI_CXX_FOUND) - add_test(indicestest indicestest) - #add_test(syncertest syncertest) -endif(MPI_CXX_FOUND) diff --git a/dune/common/parallel/test/CMakeLists.txt b/dune/common/parallel/test/CMakeLists.txt index 1a6782788dea3cf8bfb62e013fdd0f900a0ad2a7..18abc7bcfa629f9a5ac45d9d8d6854c13dc85f24 100644 --- a/dune/common/parallel/test/CMakeLists.txt +++ b/dune/common/parallel/test/CMakeLists.txt @@ -1,7 +1,5 @@ set(MPITESTPROGS indicestest indexsettest syncertest selectiontest) -add_dependencies(build_tests ${MPITESTPROGS}) - # We do not want want to build the tests during make all, # but just build them on demand add_dependencies(build_tests ${MPITESTPROGS}) @@ -24,3 +22,10 @@ endif(MPI_FOUND) #if(MPI_FOUND) # target_link_libraries(syncertest ${MPI_CXX_LIBRARIES}) #endif(MPI_FOUND) + +add_test(indexsettest indexsettest) +add_test(selectiontest selectiontest) +if(MPI_CXX_FOUND) + add_test(indicestest indicestest) + #add_test(syncertest syncertest) +endif(MPI_CXX_FOUND)