1
0
Fork 0
2019-nes-emulator/CMakeLists.txt

37 lines
502 B
CMake

cmake_minimum_required(VERSION 3.14)
project(nes)
set(CMAKE_CXX_STANDARD 14)
find_package(SDL2 REQUIRED)
add_executable(nes)
target_sources(
nes
PRIVATE
Source/Cartridge.cpp
Source/CPU/CPU.cpp
Source/CPU/AddressModes.cpp
Source/CPU/Instructions.cpp
Source/Input.cpp
Source/NES.cpp
Source/Platform.cpp
Source/PPU/PPU.cpp
Source/Main.cpp)
target_compile_options(
nes
PRIVATE
-Wall)
target_include_directories(
nes
PRIVATE
Source)
target_link_libraries(
nes
PRIVATE
SDL2::SDL2)