iphreeqc/advect/CMakeLists.txt
Darth Vader aa532d5fa4 Squashed 'examples/c/' changes from 82c54e70..1680e5b7
1680e5b7 Updated for phreeqc changes Introduce end-of-line normalization for CMakeLists.txt

git-subtree-dir: examples/c
git-subtree-split: 1680e5b76fc4f1008166df4b07cfa12049f7ff51
2023-05-29 03:20:59 +00:00

36 lines
657 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})