Skip to content

Commit

Permalink
Fixed helper related dependencies in test
Browse files Browse the repository at this point in the history
  • Loading branch information
bhourahine committed Nov 7, 2020
1 parent 0f92dd8 commit a014bfb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ set(targets
)
list(APPEND targets ${tested})

set(sources-helper
testhelper.f90
)
add_library(mpifxtesthelp ${sources-helper})
target_link_libraries(mpifxtesthelp PRIVATE MPI::MPI_Fortran MpiFx)

foreach(target IN LISTS targets)
add_executable(${target} ${target}.f90 testhelper.f90)
target_link_libraries(${target} MpiFx)
add_executable(${target} ${target}.f90)
target_link_libraries(${target} MpiFx mpifxtesthelp)
endforeach()

foreach(target IN LISTS tested)
Expand Down

0 comments on commit a014bfb

Please sign in to comment.