iphreeqc/advect/CMakeLists.txt
Darth Vader f7383cafbb Squashed 'examples/c/' changes from 8d5070c9..2a2707ae
2a2707ae [iphreeqccom] updated date
a203e0cf [iphreeqc] updated image location
aa055fc9 added README to examples
e1f78666 added CMakeLists.txt to examples
23fa9771 fixed to run on linux; cleaned examples
7dade0c0 [phreeqc] Testing subtree merges
445c6945 [phreeqc] Testing subtree merges 2
294e42f6 [phreeqc] Testing subtree merges
d664f890 Added .gitlab-ci.yml
513a83ee Closes https://gitlab.cr.usgs.gov/coupled/IPhreeqc/issues/6

git-subtree-dir: examples/c
git-subtree-split: 2a2707ae767123b1418ca2250e14df6caa65d6e2
2021-10-30 22:54:20 +00:00

36 lines
693 B
CMake

# project
project(example_advect_c C)
configure_file(phreeqc.dat phreeqc.dat COPYONLY)
configure_file(ic ic COPYONLY)
configure_file(CMakeLists.txt.in CMakeLists.txt COPYONLY)
# files
SET(C_Advect_Files
${IPhreeqc_BINARY_DIR}/examples/c/advect/CMakeLists.txt
advect.c
ic
phreeqc.dat
README.txt
)
# src
SET(C_Advect_SRC
advect.c
)
# executable
add_executable(example_advect_c ${C_Advect_SRC})
# library dependencies
SET(EXTRA_LIBS ${EXTRA_LIBS} IPhreeqc)
# link
target_link_libraries(example_advect_c ${EXTRA_LIBS})
# install directory
SET(C_Advect_Dir ${EXAMPLES_DIR}/c/advect)
# install
install(FILES ${C_Advect_Files} DESTINATION ${C_Advect_Dir})