From 2454551b038deee7637d55450db1122e94fd8fc5 Mon Sep 17 00:00:00 2001 From: Darth Vader Date: Mon, 29 May 2023 03:27:12 +0000 Subject: [PATCH] Squashed 'examples/fortran/' changes from 45020608..209412f4 209412f4 Updated for phreeqc changes Introduce end-of-line normalization for CMakeLists.txt git-subtree-dir: examples/fortran git-subtree-split: 209412f4d9d11bfeb15d74cbf7372ea6787a49cd --- CMakeLists.txt | 2 +- advect/CMakeLists.txt | 88 +++++++++++++++++++++---------------------- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6e6c91c..d8e9f25a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1 +1 @@ -add_subdirectory(advect) \ No newline at end of file +add_subdirectory(advect) diff --git a/advect/CMakeLists.txt b/advect/CMakeLists.txt index f4c18dd0..1aa26a64 100644 --- a/advect/CMakeLists.txt +++ b/advect/CMakeLists.txt @@ -1,44 +1,44 @@ -# project -if (IPHREEQC_FORTRAN_TESTING AND IPHREEQC_ENABLE_MODULE) - project(example_advect_f90 Fortran) - - configure_file(phreeqc.dat phreeqc.dat COPYONLY) - configure_file(ic ic COPYONLY) -endif() - -configure_file(CMakeLists.txt.in CMakeLists.txt COPYONLY) - -# files -SET(FORTRAN_Advect_Files -${IPhreeqc_BINARY_DIR}/examples/fortran/advect/CMakeLists.txt -advect.F90 -ic -phreeqc.dat -README.txt -) - -if (IPHREEQC_FORTRAN_TESTING AND IPHREEQC_ENABLE_MODULE) - # src - SET(FORTRAN_Advect_SRC - advect.F90 - ../../../src/IPhreeqc_interface.F90 - ) - - # place [*.F90] files into "Source Files" - source_group("Source Files" FILES ${FORTRAN_Advect_SRC}) - - # executable - add_executable(example_advect_f90 ${FORTRAN_Advect_SRC}) - - # library dependencies - SET(EXTRA_LIBS ${EXTRA_LIBS} IPhreeqc) - - # link - target_link_libraries(example_advect_f90 ${EXTRA_LIBS}) -endif() - -# install directory -SET(FORTRAN_Advect_Dir ${EXAMPLES_DIR}/fortran/advect) - -# install -install(FILES ${FORTRAN_Advect_Files} DESTINATION ${FORTRAN_Advect_Dir}) +# project +if (IPHREEQC_FORTRAN_TESTING AND IPHREEQC_ENABLE_MODULE) + project(example_advect_f90 Fortran) + + configure_file(phreeqc.dat phreeqc.dat COPYONLY) + configure_file(ic ic COPYONLY) +endif() + +configure_file(CMakeLists.txt.in CMakeLists.txt COPYONLY) + +# files +SET(FORTRAN_Advect_Files +${IPhreeqc_BINARY_DIR}/examples/fortran/advect/CMakeLists.txt +advect.F90 +ic +phreeqc.dat +README.txt +) + +if (IPHREEQC_FORTRAN_TESTING AND IPHREEQC_ENABLE_MODULE) + # src + SET(FORTRAN_Advect_SRC + advect.F90 + ../../../src/IPhreeqc_interface.F90 + ) + + # place [*.F90] files into "Source Files" + source_group("Source Files" FILES ${FORTRAN_Advect_SRC}) + + # executable + add_executable(example_advect_f90 ${FORTRAN_Advect_SRC}) + + # library dependencies + SET(EXTRA_LIBS ${EXTRA_LIBS} IPhreeqc) + + # link + target_link_libraries(example_advect_f90 ${EXTRA_LIBS}) +endif() + +# install directory +SET(FORTRAN_Advect_Dir ${EXAMPLES_DIR}/fortran/advect) + +# install +install(FILES ${FORTRAN_Advect_Files} DESTINATION ${FORTRAN_Advect_Dir})