nesemu/CMakeLists.txt

26 lines
637 B
CMake
Raw Normal View History

2023-10-05 17:05:06 -04:00
cmake_minimum_required(VERSION 3.10)
project(NESEmulator VERSION 0.1)
add_subdirectory(cpu)
2024-01-06 14:27:09 -05:00
add_subdirectory(ppu)
2023-11-26 12:11:49 -05:00
add_subdirectory(mappers)
2023-12-03 00:27:07 -05:00
add_subdirectory(rom)
2023-11-26 12:11:49 -05:00
list(APPEND EXTRA_INCLUDES
"${PROJECT_SOURCE_DIR}/cpu"
2024-01-06 14:27:09 -05:00
"${PROJECT_SOURCE_DIR}/ppu"
2023-12-03 00:27:07 -05:00
"${PROJECT_SOURCE_DIR}/mappers"
"${PROJECT_SOURCE_DIR}/rom")
2023-10-05 17:05:06 -04:00
2024-01-06 14:27:09 -05:00
add_executable(NESEmulator main.c
system.c
include/system.h
include/types.h)
2023-10-05 17:05:06 -04:00
find_package(log.c)
2024-01-06 14:27:09 -05:00
target_link_libraries(NESEmulator CPU PPU Mappers ROM log.c::log.c)
2023-10-05 17:05:06 -04:00
target_include_directories(NESEmulator PUBLIC
"${PROJECT_BINARY_DIR}"
${EXTRA_INCLUDES})