added examples to cmake build;

changed IPhreeqc.f90.inc to use IPhreeqc

git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@9701 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
Scott R Charlton 2015-05-21 05:41:22 +00:00
parent 9ca8fafe2d
commit 756abc03f6
2 changed files with 24 additions and 0 deletions

View File

@ -1,4 +1,8 @@
if (WIN32)
SET(EXAMPLES_DIR examples)
else()
SET(EXAMPLES_DIR ${CMAKE_INSTALL_DOCDIR}/examples)
endif()
add_subdirectory(c)
add_subdirectory(com)

View File

@ -1,9 +1,29 @@
# project
project(example_advect_cpp CXX)
# files
SET(CPP_Advect_Files
advect.cpp
ic
phreeqc.dat
)
# src
SET(CPP_Advect_SRC
advect.cpp
)
# executable
add_executable(example_advect_cpp ${CPP_Advect_SRC})
# library dependencies
SET(EXTRA_LIBS ${EXTRA_LIBS} IPhreeqc)
# link
target_link_libraries(example_advect_cpp ${EXTRA_LIBS})
# install directory
SET(CPP_Advect_Dir ${EXAMPLES_DIR}/cpp/advect)
# install
install(FILES ${CPP_Advect_Files} DESTINATION ${CPP_Advect_Dir})