Skip to content

Commit

Permalink
Reorder dependencies and add pioc for pio_tutil target
Browse files Browse the repository at this point in the history
  • Loading branch information
markjolah committed Jul 16, 2020
1 parent cfb02eb commit d64a09a
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions tests/general/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ endif()
set (DEFAULT_TEST_TIMEOUT 480)

add_library(pio_tutil util/pio_tutil.F90)
target_link_libraries(pio_tutil piof)
target_link_libraries(pio_tutil piof pioc)

#===== pio_init_finalize =====
add_executable (pio_init_finalize EXCLUDE_FROM_ALL
pio_init_finalize.F90)
target_link_libraries (pio_init_finalize piof pio_tutil)
target_link_libraries (pio_init_finalize pio_tutil)
add_dependencies (tests pio_init_finalize)

if (PIO_USE_MPISERIAL)
Expand Down Expand Up @@ -101,7 +101,7 @@ endif ()
#===== pio_file_simple_tests =====
add_executable (pio_file_simple_tests EXCLUDE_FROM_ALL
pio_file_simple_tests.F90)
target_link_libraries (pio_file_simple_tests piof pio_tutil)
target_link_libraries (pio_file_simple_tests pio_tutil)
add_dependencies (tests pio_file_simple_tests)

if (PIO_USE_MPISERIAL)
Expand All @@ -119,7 +119,7 @@ endif ()
#===== pio_file_fail =====
add_executable (pio_file_fail EXCLUDE_FROM_ALL
pio_file_fail.F90)
target_link_libraries (pio_file_fail piof pio_tutil)
target_link_libraries (pio_file_fail pio_tutil)
if ("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "GNU")
target_compile_options (pio_init_finalize
PRIVATE -ffree-line-length-none)
Expand All @@ -141,7 +141,7 @@ endif ()
#===== ncdf_simple_tests =====
add_executable (ncdf_simple_tests EXCLUDE_FROM_ALL
ncdf_simple_tests.F90)
target_link_libraries (ncdf_simple_tests piof pio_tutil)
target_link_libraries (ncdf_simple_tests pio_tutil)
add_dependencies (tests ncdf_simple_tests)

if (PIO_USE_MPISERIAL)
Expand All @@ -159,7 +159,7 @@ endif ()
#===== ncdf_get_put =====
add_executable (ncdf_get_put EXCLUDE_FROM_ALL
ncdf_get_put.F90)
target_link_libraries (ncdf_get_put piof pio_tutil)
target_link_libraries (ncdf_get_put pio_tutil)
add_dependencies (tests ncdf_get_put)

if (PIO_USE_MPISERIAL)
Expand All @@ -185,7 +185,7 @@ endif ()
#===== ncdf_fail =====
add_executable (ncdf_fail EXCLUDE_FROM_ALL
ncdf_fail.F90)
target_link_libraries (ncdf_fail piof pio_tutil)
target_link_libraries (ncdf_fail pio_tutil)
add_dependencies (tests ncdf_fail)

if (PIO_USE_MPISERIAL)
Expand All @@ -203,7 +203,7 @@ endif ()
#===== ncdf_inq =====
add_executable (ncdf_inq EXCLUDE_FROM_ALL
ncdf_inq.F90)
target_link_libraries (ncdf_inq piof pio_tutil)
target_link_libraries (ncdf_inq pio_tutil)
add_dependencies (tests ncdf_inq)

if (PIO_USE_MPISERIAL)
Expand All @@ -221,7 +221,7 @@ endif ()
#===== pio_rearr =====
add_executable (pio_rearr EXCLUDE_FROM_ALL
pio_rearr.F90)
target_link_libraries (pio_rearr piof pio_tutil)
target_link_libraries (pio_rearr pio_tutil)
add_dependencies (tests pio_rearr)

if (PIO_USE_MPISERIAL)
Expand All @@ -239,7 +239,7 @@ endif ()
#===== pio_rearr_opts =====
add_executable (pio_rearr_opts EXCLUDE_FROM_ALL
pio_rearr_opts.F90)
target_link_libraries (pio_rearr_opts piof pio_tutil)
target_link_libraries (pio_rearr_opts pio_tutil)
add_dependencies (tests pio_rearr_opts)

if (PIO_USE_MPISERIAL)
Expand All @@ -257,7 +257,7 @@ endif ()
#===== pio_rearr_opts2 =====
add_executable (pio_rearr_opts2 EXCLUDE_FROM_ALL
pio_rearr_opts2.F90)
target_link_libraries (pio_rearr_opts2 piof pio_tutil)
target_link_libraries (pio_rearr_opts2 pio_tutil)
add_dependencies (tests pio_rearr_opts2)

if (PIO_USE_MPISERIAL)
Expand All @@ -283,7 +283,7 @@ endif ()
#===== pio_decomp_tests =====
add_executable (pio_decomp_tests EXCLUDE_FROM_ALL
pio_decomp_tests.F90)
target_link_libraries (pio_decomp_tests piof pio_tutil)
target_link_libraries (pio_decomp_tests pio_tutil)
add_dependencies (tests pio_decomp_tests)

if (PIO_USE_MPISERIAL)
Expand Down Expand Up @@ -395,7 +395,7 @@ endif ()
#===== pio_decomp_tests_1d =====
add_executable (pio_decomp_tests_1d EXCLUDE_FROM_ALL
pio_decomp_tests_1d.F90)
target_link_libraries (pio_decomp_tests_1d piof pio_tutil)
target_link_libraries (pio_decomp_tests_1d pio_tutil)
add_dependencies (tests pio_decomp_tests_1d)

if (PIO_USE_MPISERIAL)
Expand Down Expand Up @@ -507,7 +507,7 @@ endif ()
#===== pio_decomp_tests_2d =====
add_executable (pio_decomp_tests_2d EXCLUDE_FROM_ALL
pio_decomp_tests_2d.F90)
target_link_libraries (pio_decomp_tests_2d piof pio_tutil)
target_link_libraries (pio_decomp_tests_2d pio_tutil)
add_dependencies (tests pio_decomp_tests_2d)

if (PIO_USE_MPISERIAL)
Expand Down Expand Up @@ -619,7 +619,7 @@ endif ()
#===== pio_decomp_tests_3d =====
add_executable (pio_decomp_tests_3d EXCLUDE_FROM_ALL
pio_decomp_tests_3d.F90)
target_link_libraries (pio_decomp_tests_3d piof pio_tutil)
target_link_libraries (pio_decomp_tests_3d pio_tutil)
add_dependencies (tests pio_decomp_tests_3d)

if (PIO_USE_MPISERIAL)
Expand Down Expand Up @@ -731,7 +731,7 @@ endif ()
#===== pio_decomp_frame_tests =====
add_executable (pio_decomp_frame_tests EXCLUDE_FROM_ALL
pio_decomp_frame_tests.F90)
target_link_libraries (pio_decomp_frame_tests piof pio_tutil)
target_link_libraries (pio_decomp_frame_tests pio_tutil)
add_dependencies (tests pio_decomp_frame_tests)

if (PIO_USE_MPISERIAL)
Expand All @@ -749,7 +749,7 @@ endif ()
#===== pio_decomp_fillval =====
add_executable (pio_decomp_fillval EXCLUDE_FROM_ALL
pio_decomp_fillval.F90)
target_link_libraries (pio_decomp_fillval piof pio_tutil)
target_link_libraries (pio_decomp_fillval pio_tutil)
add_dependencies (tests pio_decomp_fillval)

if (PIO_USE_MPISERIAL)
Expand All @@ -767,7 +767,7 @@ endif ()
#===== pio_iosystems_test =====
add_executable (pio_iosystem_tests EXCLUDE_FROM_ALL
pio_iosystem_tests.F90)
target_link_libraries (pio_iosystem_tests piof pio_tutil)
target_link_libraries (pio_iosystem_tests pio_tutil)
add_dependencies (tests pio_iosystem_tests)

if (PIO_USE_MPISERIAL)
Expand All @@ -786,7 +786,7 @@ endif ()
#===== pio_iosystems_test2 =====
add_executable (pio_iosystem_tests2 EXCLUDE_FROM_ALL
pio_iosystem_tests2.F90)
target_link_libraries (pio_iosystem_tests2 piof pio_tutil)
target_link_libraries (pio_iosystem_tests2 pio_tutil)
add_dependencies (tests pio_iosystem_tests2)

if (PIO_USE_MPISERIAL)
Expand All @@ -804,7 +804,7 @@ endif ()
#===== pio_iosystems_test3 =====
add_executable (pio_iosystem_tests3 EXCLUDE_FROM_ALL
pio_iosystem_tests3.F90)
target_link_libraries (pio_iosystem_tests3 piof pio_tutil)
target_link_libraries (pio_iosystem_tests3 pio_tutil)
add_dependencies (tests pio_iosystem_tests3)

if (PIO_USE_MPISERIAL)
Expand Down

0 comments on commit d64a09a

Please sign in to comment.