r16/CMakeLists.txt

39 lines
663 B
CMake
Raw Normal View History

2024-12-10 10:50:54 +00:00
cmake_minimum_required(VERSION 3.15)
project(r16)
set(CMAKE_C_STANDARD 11)
add_library(carg-parse
./lib/carg-parse/carg-parse.c
./lib/carg-parse/carg-parse.h
)
add_executable(r16a
./asm/main.c
./asm/assembler.c
./asm/assembler.h
./asm/asm_const.h
2024-12-10 11:03:41 +00:00
./emu/cpu_const.h
./emu/cpu_human.h
2024-12-10 10:50:54 +00:00
)
add_executable(r16e
./emu/main.c
./emu/cpu/instruction.c
./emu/cpu/instruction.h
./emu/cpu/ram.c
./emu/cpu/ram.h
./emu/cpu/register.c
./emu/cpu/register.h
./emu/cpu/stack.c
./emu/cpu/stack.h
./emu/cpu.c
./emu/cpu.h
./emu/cpu_const.h
./emu/cpu_human.h
)
target_link_libraries(r16a PRIVATE carg-parse)
target_link_libraries(r16e PRIVATE carg-parse)