project(LD52Native) cmake_minimum_required(VERSION 3.18.4) set(CMAKE_C_FLAGS "-Wall -Wextra -Wpedantic") set(CMAKE_C_FLAGS_DEBUG "-O0 -g") set(CMAKE_C_FLAGS_RELEASE "-O3 -D NDEBUG") set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic") set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") set(CMAKE_CXX_FLAGS_RELEASE "-O3 -D NDEBUG") if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) message(STATUS "Setting build type to 'Debug', none was specified.") set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE) set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release") endif() set(LD52Native_SOURCES src/main.cc src/game.cc src/ems.cc src/helpers.cc src/constants.cc ) add_executable(LD52Native ${LD52Native_SOURCES}) target_link_libraries(LD52Native PUBLIC raylib )