mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 08:38:23 +01:00
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
22 lines
592 B
CMake
22 lines
592 B
CMake
# set minimum cmake version
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
# set project name along with language
|
|
# iphreeqc requires CXX
|
|
project(advect_c CXX C)
|
|
|
|
# copy necessary files into build directory
|
|
configure_file(phreeqc.dat phreeqc.dat COPYONLY)
|
|
configure_file(ic ic COPYONLY)
|
|
|
|
# find IPhreeqc export package
|
|
# set CMAKE_PREFIX_PATH or IPhreeqc_DIR to the
|
|
# location of the IPhreeqcConfig.cmake file
|
|
find_package(IPhreeqc 3 REQUIRED)
|
|
|
|
# add executable target
|
|
add_executable(advect_c advect.c)
|
|
|
|
# set link libraries as well as include paths
|
|
target_link_libraries(advect_c IPhreeqc::IPhreeqc)
|