iphreeqc/examples/c/advect/CMakeLists.txt.in
2020-10-28 17:29:24 -06:00

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)