2017-02-24 10:15:43 +00:00
|
|
|
# --------------------------------------------------------------------------
|
|
|
|
# ======== |
|
|
|
|
# \ / F ield | foam-extend: Open Source CFD
|
|
|
|
# \ / O peration | Version: 4.1
|
|
|
|
# \ / A nd | Web: http://www.foam-extend.org
|
|
|
|
# \/ M anipulation | For copyright notice see file Copyright
|
|
|
|
# --------------------------------------------------------------------------
|
2010-10-07 03:00:07 +00:00
|
|
|
# License
|
2013-12-11 16:09:41 +00:00
|
|
|
# This file is part of foam-extend.
|
2010-10-07 03:00:07 +00:00
|
|
|
#
|
2013-12-11 16:09:41 +00:00
|
|
|
# foam-extend is free software: you can redistribute it and/or modify it
|
2010-10-07 03:00:07 +00:00
|
|
|
# under the terms of the GNU General Public License as published by the
|
2018-05-29 07:35:20 +00:00
|
|
|
# Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
# option) any later version.
|
2010-10-07 03:00:07 +00:00
|
|
|
#
|
2013-12-11 16:09:41 +00:00
|
|
|
# foam-extend 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.
|
2010-10-07 03:00:07 +00:00
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2013-12-11 16:09:41 +00:00
|
|
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
2010-10-07 03:00:07 +00:00
|
|
|
#
|
|
|
|
# Description
|
2017-02-24 10:15:43 +00:00
|
|
|
# CMakeLists.txt file for libraries and applications
|
2010-10-07 03:00:07 +00:00
|
|
|
#
|
|
|
|
# Author
|
2017-02-24 10:15:43 +00:00
|
|
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
2010-10-07 03:00:07 +00:00
|
|
|
#
|
|
|
|
#
|
2017-02-24 10:15:43 +00:00
|
|
|
# --------------------------------------------------------------------------
|
2010-10-07 03:00:07 +00:00
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.8)
|
|
|
|
|
2018-05-15 11:31:05 +00:00
|
|
|
project(foam-extend-4.1 C CXX)
|
2010-10-07 03:00:07 +00:00
|
|
|
|
2017-02-23 09:15:38 +00:00
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
2015-09-16 00:47:54 +00:00
|
|
|
|
2018-05-15 11:31:05 +00:00
|
|
|
option(BUILD_WITH_CMAKE "Build using cmake" ON)
|
|
|
|
option(RUN_TESTS "Run test loop" OFF)
|
2017-02-23 09:15:38 +00:00
|
|
|
|
2018-05-15 11:31:05 +00:00
|
|
|
if(BUILD_WITH_CMAKE)
|
|
|
|
include(compileFOAM)
|
|
|
|
endif(BUILD_WITH_CMAKE)
|
2017-02-23 09:15:38 +00:00
|
|
|
|
2018-05-15 11:31:05 +00:00
|
|
|
if(RUN_TESTS)
|
2018-05-28 19:46:15 +00:00
|
|
|
include(testFOAM)
|
2018-05-15 11:31:05 +00:00
|
|
|
endif(RUN_TESTS)
|