nesemu/CMakeLists.txt

21 lines
509 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)
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"
2023-12-03 00:27:07 -05:00
"${PROJECT_SOURCE_DIR}/mappers"
"${PROJECT_SOURCE_DIR}/rom")
2023-10-05 17:05:06 -04:00
add_executable(NESEmulator main.c)
find_package(log.c)
2023-12-03 00:27:07 -05:00
target_link_libraries(NESEmulator CPU Mappers ROM log.c::log.c)
2023-10-05 17:05:06 -04:00
target_include_directories(NESEmulator PUBLIC
"${PROJECT_BINARY_DIR}"
${EXTRA_INCLUDES})