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:
Roland Kaufmann 2013-02-22 11:08:57 +01:00
parent d818034537
commit ad2a604026
3 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# 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_DROP_METHOD "http")
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)

View File

@ -3,7 +3,7 @@
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
INPUT = @PROJECT_SOURCE_DIR@/@opm-core_DIR@/ \
INPUT = @PROJECT_SOURCE_DIR@/@src_DIR@/ \
@PROJECT_SOURCE_DIR@/tutorials/ \
@PROJECT_SOURCE_DIR@/examples/

View File

@ -23,6 +23,8 @@ macro (opm_doc opm doxy_dir)
endif (EXISTS ${PROJECT_SOURCE_DIR}/${doxy_dir}/Doxylocal)
file (MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/${doxy_dir})
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
configure_file (
${PROJECT_BINARY_DIR}/${doxy_dir}/Doxyfile.in