# ==============================================================================
#
#                                    O  F  E  L  I
#
#                           Object  Finite  Element  Library
#
# ==============================================================================
#
#   Copyright (C) 1998 - 2025 Rachid Touzani
#
#   This file is part of OFELI.
#
#   OFELI is free software: you can redistribute it and/or modify
#   it under the terms of the GNU Lesser General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   OFELI 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 Lesser General Public License for more details.
#
#   You should have received a copy of the GNU Lesser General Public License
#   along with OFELI. If not, see <http://www.gnu.org/licenses/>.
#
# ==============================================================================

project (LS)

add_executable (ls_demo1 ls_demo1.cpp)
target_link_libraries (ls_demo1 ofeli)

add_executable (ls_demo2 ls_demo2.cpp)
target_link_libraries (ls_demo2 ofeli)

file (COPY mesh.m DESTINATION .)

add_test (ls1 ls_demo1 10)
add_test (ls2 ls_demo2 mesh.m)

install (FILES README.md
               ls_demo1.cpp
               ls_demo2.cpp
               mesh.m
         DESTINATION ${INSTALL_DEMODIR}/solvers/${PROJECT_NAME}
        )
