2021-06-11 19:24:52 +02:00
|
|
|
# MassBuilderSaveTool
|
2022-01-30 11:36:56 +01:00
|
|
|
# Copyright (C) 2021-2022 Guillaume Jacquemin
|
2021-06-11 19:24:52 +02: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)
|
2022-04-23 21:50:20 +02:00
|
|
|
project(MassBuilderSaveTool CXX)
|
2021-06-11 19:24:52 +02:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2022-04-24 16:37:36 +02:00
|
|
|
set(WITH_INTERCONNECT ON CACHE BOOL "" FORCE)
|
2022-04-16 01:05:00 +02:00
|
|
|
set(WITH_PLUGINMANAGER OFF CACHE BOOL "" FORCE)
|
2021-06-11 19:24:52 +02:00
|
|
|
set(WITH_TESTSUITE OFF CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_MAIN ON CACHE BOOL "" FORCE)
|
2022-04-18 11:49:01 +02:00
|
|
|
set(BUILD_DEPRECATED ON CACHE BOOL "" FORCE)
|
2021-06-11 19:24:52 +02:00
|
|
|
add_subdirectory(third-party/corrade EXCLUDE_FROM_ALL)
|
|
|
|
|
2022-04-13 11:58:01 +02:00
|
|
|
set(DIRECTX OFF CACHE BOOL "" FORCE) # We use OpenGL.
|
2021-06-11 19:24:52 +02:00
|
|
|
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)
|
2022-04-16 01:05:00 +02:00
|
|
|
set(WITH_SCENETOOLS 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)
|
|
|
|
|
2022-03-31 17:57:53 +02:00
|
|
|
set(BUILD_CURL_EXE OFF CACHE BOOL "" FORCE)
|
|
|
|
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
|
|
|
|
set(ENABLE_UNICODE ON CACHE BOOL "" FORCE)
|
|
|
|
set(ENABLE_DEBUG ON CACHE BOOL "" FORCE)
|
|
|
|
set(ENABLE_THREADED_RESOLVER OFF CACHE BOOL "" FORCE)
|
|
|
|
set(HTTP_ONLY ON CACHE BOOL "" FORCE)
|
|
|
|
set(CURL_USE_SCHANNEL ON CACHE BOOL "" FORCE)
|
|
|
|
set(CURL_USE_LIBSSH2 OFF CACHE BOOL "" FORCE) # For some reason, even when HTTP_ONLY is set to ON, libcurl will try to link to libssh2.
|
|
|
|
add_subdirectory(third-party/curl EXCLUDE_FROM_ALL)
|
2021-07-22 11:36:37 +02:00
|
|
|
|
2021-06-11 19:24:52 +02:00
|
|
|
add_subdirectory(src)
|