nesemu/CMakeLists.txt

21 lines
509 B
CMake

cmake_minimum_required(VERSION 3.10)
project(NESEmulator VERSION 0.1)
add_subdirectory(cpu)
add_subdirectory(mappers)
add_subdirectory(rom)
list(APPEND EXTRA_INCLUDES
"${PROJECT_SOURCE_DIR}/cpu"
"${PROJECT_SOURCE_DIR}/mappers"
"${PROJECT_SOURCE_DIR}/rom")
add_executable(NESEmulator main.c)
find_package(log.c)
target_link_libraries(NESEmulator CPU Mappers ROM log.c::log.c)
target_include_directories(NESEmulator PUBLIC
"${PROJECT_BINARY_DIR}"
${EXTRA_INCLUDES})