22 lines
507 B
CMake
22 lines
507 B
CMake
cmake_minimum_required(VERSION 3.31)
|
|
project(RISCB C)
|
|
|
|
set(CMAKE_C_STANDARD 23)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(SDL2 REQUIRED sdl2)
|
|
|
|
add_executable(RISCB main.c
|
|
util/font.c
|
|
util/font.h
|
|
assembler/assembler.c
|
|
assembler/assembler.h
|
|
cpu/memory.c
|
|
cpu/memory.h
|
|
cpu/core.c
|
|
cpu/core.h
|
|
util/texteditor.c
|
|
util/texteditor.h) # Ensure the target is defined before linking
|
|
|
|
target_link_libraries(RISCB SDL2 SDL2_ttf m)
|