21 lines
485 B
CMake
21 lines
485 B
CMake
cmake_minimum_required(VERSION 3.26)
|
|
project(chip8)
|
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
|
|
find_package(SDL2 REQUIRED)
|
|
|
|
add_executable(chip8 main.cpp
|
|
include/chip8.h
|
|
src/chip8.cpp
|
|
include/logger.h
|
|
include/date.h
|
|
src/date.cpp
|
|
include/display.h
|
|
src/display.cpp
|
|
include/instruction.h
|
|
src/instruction.cpp
|
|
include/instruction_handler.h
|
|
src/instruction_handler.cpp)
|
|
|
|
target_link_libraries(chip8 ${SDL2_LIBRARIES}) |