mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
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:
parent
9ca8fafe2d
commit
756abc03f6
@ -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)
|
||||
|
||||
@ -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})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user