2020-01-09 13:59:19 +01:00
# wxMASSManager
2021-05-20 22:46:59 +02:00
# Copyright (C) 2020-2021 Guillaume Jacquemin
2020-01-09 13:59:19 +01:00
#
# 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 3 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, see <https://www.gnu.org/licenses/>.
cmake_minimum_required ( VERSION 3.5 )
project ( wxMASSManager LANGUAGES CXX )
2021-05-14 19:50:31 +02:00
set ( CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/" ${ CMAKE_MODULE_PATH } )
2020-01-09 13:59:19 +01:00
set ( CMAKE_CXX_STANDARD 11 )
set ( CMAKE_CXX_STANDARD_REQUIRED ON )
2021-05-14 19:50:31 +02:00
set ( CMAKE_CXX_EXTENSIONS OFF )
2020-01-09 13:59:19 +01:00
2020-09-21 13:48:12 +02:00
option ( USE_CORRADE_SUBMODULE "Use Corrade from the Git submodule. If set to OFF, make sure you have Corrade 2020.06 or later installed to a path CMake can search in." ON )
2020-10-05 12:53:04 +02:00
if ( USE_CORRADE_SUBMODULE )
2020-09-21 13:48:12 +02:00
set ( BUILD_STATIC ON CACHE BOOL "" FORCE )
2021-05-14 19:50:31 +02:00
set ( BUILD_STATIC_PIC ON CACHE BOOL "" FORCE )
set ( BUILD_STATIC_UNIQUE_GLOBALS OFF CACHE BOOL "" FORCE )
2020-09-21 13:48:12 +02:00
set ( WITH_INTERCONNECT OFF CACHE BOOL "" FORCE )
set ( WITH_PLUGINMANAGER OFF CACHE BOOL "" FORCE )
set ( WITH_TESTSUITE OFF CACHE BOOL "" FORCE )
add_subdirectory ( corrade EXCLUDE_FROM_ALL )
endif ( )
2020-01-09 13:59:19 +01:00
2021-05-20 22:46:59 +02:00
add_subdirectory ( src )