2021-06-11 19:24:52 +02:00
|
|
|
# MassBuilderSaveTool
|
|
|
|
# Copyright (C) 2021 Guillaume Jacquemin
|
|
|
|
#
|
|
|
|
# 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(MassBuilderSaveTool)
|
|
|
|
|
|
|
|
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/" ${CMAKE_MODULE_PATH})
|
|
|
|
|
|
|
|
SET(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
|
|
|
|
|
|
|
set(BUILD_STATIC ON CACHE BOOL "" FORCE)
|
|
|
|
set(BUILD_STATIC_PIC ON CACHE BOOL "" FORCE)
|
|
|
|
set(BUILD_STATIC_UNIQUE_GLOBALS OFF CACHE BOOL "" FORCE)
|
|
|
|
|
|
|
|
set(WITH_INTERCONNECT ON CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_PLUGINMANAGER ON CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_TESTSUITE OFF CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_MAIN ON CACHE BOOL "" FORCE)
|
|
|
|
add_subdirectory(third-party/corrade EXCLUDE_FROM_ALL)
|
|
|
|
|
|
|
|
set(SDL_ATOMIC OFF CACHE BOOL "" FORCE)
|
|
|
|
set(SDL_CPUINFO OFF CACHE BOOL "" FORCE)
|
|
|
|
set(SDL_EVENTS ON CACHE BOOL "" FORCE)
|
|
|
|
set(SDL_FILE OFF CACHE BOOL "" FORCE)
|
|
|
|
set(SDL_FILESYSTEM OFF CACHE BOOL "" FORCE)
|
|
|
|
set(SDL_HAPTIC OFF CACHE BOOL "" FORCE)
|
|
|
|
set(SDL_LOCALE OFF CACHE BOOL "" FORCE)
|
|
|
|
set(SDL_POWER OFF CACHE BOOL "" FORCE)
|
|
|
|
set(SDL_RENDER OFF CACHE BOOL "" FORCE)
|
|
|
|
set(SDL_SENSOR OFF CACHE BOOL "" FORCE)
|
|
|
|
set(SDL_THREADS ON CACHE BOOL "" FORCE)
|
|
|
|
set(SDL_TIMERS ON CACHE BOOL "" FORCE)
|
|
|
|
set(SDL_SHARED OFF CACHE BOOL "" FORCE)
|
|
|
|
add_subdirectory(third-party/SDL EXCLUDE_FROM_ALL)
|
|
|
|
|
|
|
|
set(TARGET_GL ON CACHE BOOL "" FORCE)
|
|
|
|
set(TARGET_GLES OFF CACHE BOOL "" FORCE)
|
|
|
|
set(TARGET_VK OFF CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_AUDIO OFF CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_DEBUGTOOLS OFF CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_GL ON CACHE BOOL "" FORCE)
|
2021-06-20 23:56:46 +02:00
|
|
|
set(WITH_MESHTOOLS OFF CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_PRIMITIVES OFF CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_SCENEGRAPH OFF CACHE BOOL "" FORCE)
|
2021-06-11 19:24:52 +02:00
|
|
|
set(WITH_SHADERS ON CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_SHADERTOOLS OFF CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_TEXT OFF CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_TEXTURETOOLS OFF CACHE BOOL "" FORCE)
|
2021-06-20 23:56:46 +02:00
|
|
|
set(WITH_TRADE OFF CACHE BOOL "" FORCE)
|
2021-06-11 19:24:52 +02:00
|
|
|
set(WITH_VK OFF CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_SDL2APPLICATION ON CACHE BOOL "" FORCE)
|
|
|
|
add_subdirectory(third-party/magnum EXCLUDE_FROM_ALL)
|
|
|
|
|
|
|
|
set(IMGUI_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third-party/imgui)
|
|
|
|
set(WITH_IMGUI ON CACHE BOOL "" FORCE)
|
|
|
|
add_subdirectory(third-party/magnum-integration EXCLUDE_FROM_ALL)
|
|
|
|
|
|
|
|
set(ENABLE_COMMONCRYPTO OFF CACHE BOOL "" FORCE)
|
|
|
|
set(ENABLE_GNUTLS OFF CACHE BOOL "" FORCE)
|
|
|
|
set(ENABLE_MBEDTLS OFF CACHE BOOL "" FORCE)
|
|
|
|
set(ENABLE_OPENSSL OFF CACHE BOOL "" FORCE)
|
|
|
|
set(ENABLE_WINDOWS_CRYPTO OFF CACHE BOOL "" FORCE)
|
|
|
|
set(ENABLE_BZIP2 OFF CACHE BOOL "" FORCE)
|
|
|
|
set(ENABLE_LZMA OFF CACHE BOOL "" FORCE)
|
|
|
|
set(ENABLE_ZSTD OFF CACHE BOOL "" FORCE)
|
|
|
|
set(BUILD_TOOLS OFF CACHE BOOL "" FORCE)
|
|
|
|
set(BUILD_REGRESS OFF CACHE BOOL "" FORCE)
|
|
|
|
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
|
|
|
set(BUILD_DOC OFF CACHE BOOL "" FORCE)
|
|
|
|
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
|
|
|
|
add_subdirectory(third-party/libzip EXCLUDE_FROM_ALL)
|
|
|
|
|
|
|
|
set(VERBOSE OFF CACHE BOOL "" FORCE)
|
|
|
|
set(BUILD_TEST_APP OFF CACHE BOOL "" FORCE)
|
|
|
|
set(EFSW_INSTALL OFF CACHE BOOL "" FORCE)
|
|
|
|
add_subdirectory(third-party/efsw EXCLUDE_FROM_ALL)
|
|
|
|
|
2021-07-22 11:36:37 +02:00
|
|
|
set(CPR_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
2021-07-22 13:10:40 +02:00
|
|
|
set(CMAKE_USE_LIBSSH2 OFF CACHE BOOL "" FORCE) # For some reason, even when HTTP_ONLY is set to ON, libcurl will try to link to libssh2.
|
2021-07-22 11:36:37 +02:00
|
|
|
add_subdirectory(third-party/cpr EXCLUDE_FROM_ALL)
|
|
|
|
|
2021-06-11 19:24:52 +02:00
|
|
|
add_subdirectory(src)
|