Use generic names in other files also
Reduce the number of files that must be customized when starting new projects.
This commit is contained in:
parent
d818034537
commit
ad2a604026
@ -1,7 +1,7 @@
|
|||||||
# this is included after opm-core_NAME is set
|
# this is included after opm-core_NAME is set
|
||||||
set(CTEST_PROJECT_NAME "${opm-core_NAME}")
|
set(CTEST_PROJECT_NAME "${${project}_NAME}")
|
||||||
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
|
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
|
||||||
set(CTEST_DROP_METHOD "http")
|
set(CTEST_DROP_METHOD "http")
|
||||||
set(CTEST_DROP_SITE "opm-project.org")
|
set(CTEST_DROP_SITE "opm-project.org")
|
||||||
set(CTEST_DROP_LOCATION "/CDash/submit.php?project=${opm-core_NAME}")
|
set(CTEST_DROP_LOCATION "/CDash/submit.php?project=${${project}_NAME}")
|
||||||
set(CTEST_DROP_SITE_CDASH TRUE)
|
set(CTEST_DROP_SITE_CDASH TRUE)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# directories like "/usr/src/myproject". Separate the files or directories
|
# directories like "/usr/src/myproject". Separate the files or directories
|
||||||
# with spaces.
|
# with spaces.
|
||||||
|
|
||||||
INPUT = @PROJECT_SOURCE_DIR@/@opm-core_DIR@/ \
|
INPUT = @PROJECT_SOURCE_DIR@/@src_DIR@/ \
|
||||||
@PROJECT_SOURCE_DIR@/tutorials/ \
|
@PROJECT_SOURCE_DIR@/tutorials/ \
|
||||||
@PROJECT_SOURCE_DIR@/examples/
|
@PROJECT_SOURCE_DIR@/examples/
|
||||||
|
|
||||||
|
@ -23,6 +23,8 @@ macro (opm_doc opm doxy_dir)
|
|||||||
endif (EXISTS ${PROJECT_SOURCE_DIR}/${doxy_dir}/Doxylocal)
|
endif (EXISTS ${PROJECT_SOURCE_DIR}/${doxy_dir}/Doxylocal)
|
||||||
file (MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/${doxy_dir})
|
file (MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/${doxy_dir})
|
||||||
file (WRITE ${PROJECT_BINARY_DIR}/${doxy_dir}/Doxyfile.in ${_doxy_templ} ${_doxy_local})
|
file (WRITE ${PROJECT_BINARY_DIR}/${doxy_dir}/Doxyfile.in ${_doxy_templ} ${_doxy_local})
|
||||||
|
# set this generically named variable so even the custom file can be shared
|
||||||
|
set (src_DIR "${${opm}_DIR}")
|
||||||
# replace variables in this combined file
|
# replace variables in this combined file
|
||||||
configure_file (
|
configure_file (
|
||||||
${PROJECT_BINARY_DIR}/${doxy_dir}/Doxyfile.in
|
${PROJECT_BINARY_DIR}/${doxy_dir}/Doxyfile.in
|
||||||
|
Loading…
Reference in New Issue
Block a user