19 lines
463 B
CMake
19 lines
463 B
CMake
cmake_minimum_required(VERSION 3.26.4)
|
|
project(reman3)
|
|
|
|
# Build for 32-bit compatibility, until code is binary compatible with 64-bit
|
|
option(R3_32BIT "Build for 32-bit compatibility" ON)
|
|
|
|
if(R3_32BIT)
|
|
add_compile_options(-m32)
|
|
add_link_options(-m32)
|
|
endif()
|
|
|
|
set(GAME_DATA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/game)
|
|
|
|
add_subdirectory(third_party)
|
|
add_subdirectory(game_re)
|
|
|
|
# Use highest possible C standard
|
|
set_target_properties(game_re PROPERTIES C_STANDARD 23)
|