feature: introduce DRANG_PLATFORM_BUILD_SHARED option for shared library builds

This commit is contained in:
MechSlayer 2025-09-05 17:03:27 +02:00
parent 505539f1cd
commit e857d1a896
4 changed files with 16 additions and 14 deletions

View file

@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.21)
project(DrangPlatform VERSION 1.0.0 LANGUAGES C)
option(DRANG_PLATFORM_BUILD_SHARED "Build DrangPlatform as a shared library" OFF)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
@ -25,4 +27,5 @@ set(MI_BUILD_STATIC ON CACHE BOOL "" FORCE)
set(MI_USE_CXX OFF CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(mimalloc)
add_subdirectory(Source/DrangPlatform)