# To help simplify including Elemental in external projects
# TODO: Complain if Qt5 was used

ROTE_INC = @CMAKE_INSTALL_PREFIX@/include
ROTE_LIB = @CMAKE_INSTALL_PREFIX@/lib

CC = @CMAKE_C_COMPILER@
CXX = @CMAKE_CXX_COMPILER@
CXX_FLAGS = @CXX_FLAGS@

MATH_LIBS = @MATH_LIBS_STRING@

MPI_CXX_INCLUDE_STRING = @MPI_CXX_INCLUDE_STRING@
MPI_CXX_COMPILE_FLAGS = @MPI_CXX_COMPILE_FLAGS@
MPI_CXX_LINK_FLAGS = @MPI_CXX_LINK_FLAGS@
MPI_CXX_LIBS = @MPI_CXX_LIBS@

ROTE_COMPILE_FLAGS = -g ${CXX_FLAGS} -I${ROTE_INC} ${MPI_CXX_INCLUDE_STRING}
ROTE_LINK_FLAGS = -g -L${ROTE_LIB} ${MPI_CXX_LINK_FLAGS}

HAVE_PMRRR = @HAVE_PMRRR@
ifeq (${HAVE_PMRRR},FALSE)
  PMRRR_LIBS = 
else
  MISSING_LAPACK = @MISSING_LAPACK@
  ifeq (${MISSING_LAPACK},TRUE)
    LAPACK_ADDONS = -llapack-addons @LAPACK_ADDONS_STRING@
  else
    LAPACK_ADDONS = 
  endif
  THREAD_INIT = @CMAKE_THREAD_LIBS_INIT@
  PMRRR_LIBS = -lpmrrr ${LAPACK_ADDONS} ${THREAD_INIT}
endif
ROTE_LIBS = -lrote ${PMRRR_LIBS} ${MATH_LIBS} ${MPI_CXX_LIBS}
