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) if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") add_link_options(/machine:x86) else() add_compile_options(-m32) add_link_options(-m32) endif() 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)