###  TEMPLATE.txt.tpl; coding: utf-8 ---

#  Author(s): Christophe Prud'homme <christophe.prudhomme@ujf-grenoble.fr>
#       Date: 2012-02-05
#
#  Copyright (C) 2012 Universite Joseph Fourier (Grenoble I)
#
# Distributed under the GPL(GNU Public License):
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_custom_target(gen_feel_perf_dar ALL )
#foreach(N 2 3 4 5)
#foreach(S "Simplex" "Hypercube")
foreach(S "Simplex")
foreach(P "Lagrange")
foreach(C "Continuous")
foreach(D 2)
  foreach(N 1)
    set( LAG "// this file is automatically generated
#include <dar.hpp>
namespace Feel {
  template class DAR<${D}, ${N}, ${C}, ${S}>\\;
}
")
    OVERWITE_IF_DIFFERENT(gen_feel_perf_dar "feel_perf_dar_${S}_${D}D_${P}_${N}_${C}.cpp" "${LAG}" dar.hpp)
    set(lagrange "${CMAKE_CURRENT_BINARY_DIR}/feel_perf_dar_${S}_${D}D_${P}_${N}_${C}.cpp;${lagrange}")
  endforeach()
endforeach()
endforeach()
endforeach()
endforeach()

add_executable(feel_perf_dar  ${lagrange} bench.cpp)
#add_executable(feel_perf_dar ${CMAKE_CURRENT_BINARY_DIR}/feel_perf_dar_Hypercube_2D_CrouzeixRaviart_1.cpp  bench.cpp)
add_dependencies(feel_perf_dar gen_feel_perf_dar)
target_link_libraries(feel_perf_dar ${FEELPP_LIBRARIES})


configure_file(dar.cfg dar.cfg)

