summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorArchez <Archez@users.noreply.github.com>2024-08-13 01:09:49 -0400
committerArchez <Archez@users.noreply.github.com>2024-08-13 01:09:49 -0400
commit651348d2a94f6bfa5f7e7f89800908e9e8a4a3e5 (patch)
treef54e376533a8926010561fd1fe47384b8431ad41 /CMakeLists.txt
parent0bc6ca08e0549ec2ce780e6dd1295f84a194cc25 (diff)
parent73be4e55591f547df1a27884fdddbae36f603e07 (diff)
Merge remote-tracking branch 'origin/develop' into macready-golf-merge
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt28
1 files changed, 17 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6381f803a..2d200a2d7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,8 @@ set(CMAKE_CXX_STANDARD 20 CACHE STRING "The C++ standard to use")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version")
project(Ship VERSION 8.0.6 LANGUAGES C CXX)
+include(CMake/soh-cvars.cmake)
+include(CMake/lus-cvars.cmake)
set(PROJECT_BUILD_NAME "MacReady Golf" CACHE STRING "" FORCE)
set(PROJECT_TEAM "github.com/harbourmasters" CACHE STRING "" FORCE)
@@ -13,20 +15,18 @@ set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT soh)
add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/MP>)
add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/utf-8>)
-if (CMAKE_SYSTEM_NAME MATCHES "Windows|Linux")
- if(NOT DEFINED BUILD_CROWD_CONTROL)
- set(BUILD_CROWD_CONTROL ON)
- endif()
-endif()
-
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
-include(CMake/automate-vcpkg.cmake)
+ include(CMake/automate-vcpkg.cmake)
-set(VCPKG_TRIPLET x64-windows-static)
-set(VCPKG_TARGET_TRIPLET x64-windows-static)
+ set(VCPKG_TRIPLET x64-windows-static)
+ set(VCPKG_TARGET_TRIPLET x64-windows-static)
-vcpkg_bootstrap()
-vcpkg_install_packages(zlib bzip2 libpng sdl2 sdl2-net glew glfw3)
+ vcpkg_bootstrap()
+ vcpkg_install_packages(zlib bzip2 libzip libpng sdl2 sdl2-net glew glfw3 nlohmann-json tinyxml2 spdlog)
+
+ if (CMAKE_C_COMPILER_LAUNCHER MATCHES "ccache|sccache")
+ set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded)
+ endif()
endif()
################################################################################
@@ -85,6 +85,12 @@ include(CMake/GlobalSettingsInclude.cmake OPTIONAL)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
################################################################################
+# Set GBI version
+################################################################################
+
+set(GBI_UCODE F3DEX_GBI_2)
+
+################################################################################
# Sub-projects
################################################################################
add_subdirectory(libultraship ${CMAKE_BINARY_DIR}/libultraship)