iphreeqc/examples/using-cmake/CMakeLists.txt.in
2020-09-16 21:40:45 -07:00

22 lines
629 B
CMake

# set minimum cmake version
cmake_minimum_required(VERSION 3.10)
# set project name along with language
project(cmake-example CXX)
# copy necessary files into build directory
configure_file(phreeqc.dat phreeqc.dat COPYONLY)
configure_file(ex2 ex2 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(example main.cpp)
# set link libraries as well as include paths
#target_link_libraries(example PUBLIC IPhreeqc::IPhreeqc)
target_link_libraries(example IPhreeqc::IPhreeqc)