2019-09-02 01:41:02 +00:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project(nes)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
|
|
|
|
find_package(SDL2 REQUIRED)
|
|
|
|
|
|
|
|
add_executable(nes)
|
|
|
|
|
|
|
|
target_sources(
|
|
|
|
nes
|
|
|
|
PRIVATE
|
2019-09-06 23:58:57 +00:00
|
|
|
Source/Cartridge.cpp
|
2019-09-02 01:41:02 +00:00
|
|
|
Source/CPU/CPU.cpp
|
|
|
|
Source/CPU/AddressModes.cpp
|
|
|
|
Source/CPU/Instructions.cpp
|
2019-09-11 23:20:30 +00:00
|
|
|
Source/Input.cpp
|
2019-09-06 23:58:57 +00:00
|
|
|
Source/NES.cpp
|
|
|
|
Source/Platform.cpp
|
|
|
|
Source/PPU/PPU.cpp
|
2019-09-02 01:41:02 +00:00
|
|
|
Source/Main.cpp)
|
|
|
|
|
|
|
|
target_compile_options(
|
|
|
|
nes
|
|
|
|
PRIVATE
|
|
|
|
-Wall)
|
|
|
|
|
|
|
|
target_include_directories(
|
|
|
|
nes
|
|
|
|
PRIVATE
|
|
|
|
Source)
|
|
|
|
|
|
|
|
target_link_libraries(
|
|
|
|
nes
|
|
|
|
PRIVATE
|
|
|
|
SDL2::SDL2)
|