module files are parsed for configuration by default
This commit is contained in:
@ -2,11 +2,6 @@
|
||||
#
|
||||
# Generates source code that echoes configuration, version, and build
|
||||
# information to the program output.
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
#
|
||||
# [build_info]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/build_info.cmake
|
||||
|
||||
find_package(PythonInterp REQUIRED)
|
||||
|
||||
|
@ -17,10 +17,8 @@
|
||||
#
|
||||
# CFLAGS
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# [cc]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/cc.cmake
|
||||
# docopt: --cc=<CC> C compiler [default: gcc].
|
||||
# --extra-cc-flags=<EXTRA_CFLAGS> Extra C compiler flags [default: ''].
|
||||
# export: 'CC=%s' % arguments['--cc']
|
||||
|
@ -8,10 +8,8 @@
|
||||
# CMAKE_C_FLAGS
|
||||
# CMAKE_CXX_FLAGS
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# [coverage]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/code_coverage.cmake
|
||||
# docopt: --coverage Enable code coverage [default: False].
|
||||
# define: '-DENABLE_CODE_COVERAGE=%s' % arguments['--coverage']
|
||||
|
||||
|
@ -17,10 +17,8 @@
|
||||
#
|
||||
# CXXFLAGS
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# [cxx]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/cxx.cmake
|
||||
# docopt: --cxx=<CXX> C++ compiler [default: g++].
|
||||
# --extra-cxx-flags=<EXTRA_CXXFLAGS> Extra C++ compiler flags [default: ''].
|
||||
# export: 'CXX=%s' % arguments['--cxx']
|
||||
|
@ -7,11 +7,6 @@
|
||||
#
|
||||
# CMAKE_RUNTIME_OUTPUT_DIRECTORY
|
||||
# CMAKE_LIBRARY_OUTPUT_DIRECTORY
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
#
|
||||
# [default_build_paths]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/default_build_paths.cmake
|
||||
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
|
||||
|
@ -21,10 +21,8 @@
|
||||
#
|
||||
# FCFLAGS
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# [fc]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/fc.cmake
|
||||
# docopt: --fc=<FC> Fortran compiler [default: gfortran].
|
||||
# --extra-fc-flags=<EXTRA_FCFLAGS> Extra Fortran compiler flags [default: ''].
|
||||
# export: 'FC=%s' % arguments['--fc']
|
||||
|
@ -26,10 +26,8 @@
|
||||
#
|
||||
# FCFLAGS
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# [fc]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/fc.cmake
|
||||
# docopt: --fc=<FC> Fortran compiler [default: gfortran].
|
||||
# --extra-fc-flags=<EXTRA_FCFLAGS> Extra Fortran compiler flags [default: ''].
|
||||
# --fc-support=<FC_SUPPORT> Toggle Fortran language support (ON/OFF) [default: ON].
|
||||
|
@ -6,10 +6,8 @@
|
||||
#
|
||||
# GOOGLETEST_ROOT
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# [googletest]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/googletest.cmake
|
||||
# define: '-DGOOGLETEST_ROOT=external/googletest'
|
||||
|
||||
set(GOOGLETEST_ROOT external/googletest CACHE STRING "Google Test source root")
|
||||
|
@ -6,10 +6,8 @@
|
||||
#
|
||||
# CMAKE_Fortran_FLAGS
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# [int64]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/int64.cmake
|
||||
# docopt: --int64 Enable 64bit integers [default: False].
|
||||
# define: '-DENABLE_64BIT_INTEGERS=%s' % arguments['--int64']
|
||||
|
||||
|
@ -36,10 +36,8 @@
|
||||
# MKL_ROOT
|
||||
# MKLROOT
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# [math_libs]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/math_libs.cmake
|
||||
# docopt: --blas=<BLAS> Detect and link BLAS library (auto or off) [default: auto].
|
||||
# --lapack=<LAPACK> Detect and link LAPACK library (auto or off) [default: auto].
|
||||
# --mkl=<MKL> Pass MKL flag to the Intel compiler and linker and skip BLAS/LAPACK detection (sequential, parallel, cluster, or off) [default: off].
|
||||
|
@ -11,10 +11,8 @@
|
||||
#
|
||||
# CMAKE_Fortran_FLAGS
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# [mpi]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/mpi.cmake
|
||||
# docopt: --mpi Enable MPI parallelization [default: False].
|
||||
# define: '-DENABLE_MPI=%s' % arguments['--mpi']
|
||||
|
||||
|
@ -13,10 +13,8 @@
|
||||
# CMAKE_C_FLAGS
|
||||
# CMAKE_CXX_FLAGS
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# [omp]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/omp.cmake
|
||||
# docopt: --omp Enable OpenMP parallelization [default: False].
|
||||
# define: '-DENABLE_OPENMP=%s' % arguments['--omp']
|
||||
|
||||
|
@ -5,10 +5,5 @@
|
||||
# Variables defined::
|
||||
#
|
||||
# PYTHON_EXECUTABLE
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
#
|
||||
# [python]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/python.cmake
|
||||
|
||||
find_package(PythonInterp REQUIRED)
|
||||
|
@ -7,11 +7,6 @@
|
||||
# PROJECT_SOURCE_DIR
|
||||
# PROJECT_BINARY_DIR
|
||||
# CMAKE_BUILD_TYPE
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
#
|
||||
# [safeguards]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/safeguards.cmake
|
||||
|
||||
if(${PROJECT_SOURCE_DIR} STREQUAL ${PROJECT_BINARY_DIR})
|
||||
message(FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there.")
|
||||
|
@ -1,10 +1,5 @@
|
||||
#.rst:
|
||||
#
|
||||
# Adds ${PROJECT_SOURCE_DIR}/src as subdirectory containing CMakeLists.txt.
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
#
|
||||
# [src]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/src.cmake
|
||||
|
||||
add_subdirectory(${PROJECT_SOURCE_DIR}/src)
|
||||
|
@ -8,10 +8,8 @@
|
||||
# CMAKE_C_FLAGS
|
||||
# CMAKE_CXX_FLAGS
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# [static_linking]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/static_linking.cmake
|
||||
# docopt: --static Enable static linking [default: False].
|
||||
# define: '-DENABLE_STATIC_LINKING=%s' % arguments['--static']
|
||||
|
||||
|
@ -9,11 +9,6 @@
|
||||
# Variables defined::
|
||||
#
|
||||
# PROGRAM_VERSION
|
||||
#
|
||||
# Example autocmake.cfg entry::
|
||||
#
|
||||
# [version]
|
||||
# source: https://github.com/scisoft/autocmake/raw/master/modules/version.cmake
|
||||
|
||||
if(EXISTS "${PROJECT_SOURCE_DIR}/VERSION")
|
||||
file(READ "${PROJECT_SOURCE_DIR}/VERSION" PROGRAM_VERSION)
|
||||
|
Reference in New Issue
Block a user