INCLUDE(FortranSettings)

if (${CMAKE_PROJECT_NAME} STREQUAL "SEACASProj")
INCLUDE(InstallSymLink)
endif()

TRIBITS_SUBPACKAGE(Explore)

INCLUDE_DIRECTORIES(
  "${CMAKE_CURRENT_SOURCE_DIR}"
)

SET(HEADERS "")
APPEND_GLOB(SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.f)

TRIBITS_ADD_EXECUTABLE(
  explore
  NOEXEPREFIX
  NOEXESUFFIX
  LINKER_LANGUAGE Fortran
  SOURCES ${SOURCES}
  COMM serial mpi
  ADDED_EXE_TARGET_NAME_OUT explore_added
  INSTALLABLE
  )

if (explore_added)
  if (${CMAKE_PROJECT_NAME} STREQUAL "SEACASProj")
    InstallSymLink(explore ${CMAKE_INSTALL_PREFIX}/bin/grope)
  endif()
endif()

TRIBITS_SUBPACKAGE_POSTPROCESS()
