cmake cmake_add_fortran_subdirectory examples

Signatures

cmake_add_fortran_subdirectory(
  <subdir>                # name of subdirectory
  PROJECT <project_name>  # project name in subdir top CMakeLists.txt
  ARCHIVE_DIR <dir>       # dir where project places .lib files
  RUNTIME_DIR <dir>       # dir where project places .dll files
  LIBRARIES <lib>...      # names of library targets to import
  LINK_LIBRARIES          # link interface libraries for LIBRARIES
  [LINK_LIBS <lib> <dep>...]...
  CMAKE_COMMAND_LINE ...  # extra command line flags to pass to cmake
  NO_EXTERNAL_INSTALL     # skip installation of external project
)

Examples

NREL/EnergyPlus CMakeLists.txt :380

cmake_add_fortran_subdirectory(
    src/ExpandObjects
    PROJECT ExpandObjects
    NO_EXTERNAL_INSTALL)