2021-04-06 19:02:50 +00:00
|
|
|
file(GLOB MAPPER_SRCS ../extern/fixNES/mapper/*.c)
|
2018-02-01 23:19:34 +00:00
|
|
|
add_library(NESEmulator CNESEmulator.hpp CNESEmulator.cpp CNESShader.hpp CNESShader.cpp malloc.h
|
2021-04-06 19:02:50 +00:00
|
|
|
apu.c ../extern/fixNES/audio_fds.c ../extern/fixNES/audio_mmc5.c ../extern/fixNES/audio_vrc6.c
|
|
|
|
../extern/fixNES/audio_vrc7.c ../extern/fixNES/audio_n163.c ../extern/fixNES/audio_s5b.c
|
|
|
|
../extern/fixNES/cpu.c ppu.c ../extern/fixNES/mem.c ../extern/fixNES/input.c ../extern/fixNES/mapper.c
|
|
|
|
../extern/fixNES/mapperList.c ../extern/fixNES/fm2play.c ../extern/fixNES/vrc_irq.c ${MAPPER_SRCS})
|
|
|
|
target_include_directories(NESEmulator PRIVATE
|
|
|
|
${CMAKE_SOURCE_DIR}/DataSpec
|
|
|
|
${CMAKE_SOURCE_DIR}/Runtime
|
|
|
|
${CMAKE_SOURCE_DIR}/extern
|
|
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
2019-06-30 07:29:49 +00:00
|
|
|
target_compile_definitions(NESEmulator PRIVATE COL_32BIT=1 COL_TEX_BSWAP=1)
|
2022-02-21 09:04:16 +00:00
|
|
|
target_link_libraries(NESEmulator RuntimeCommon)
|
2019-06-12 02:05:17 +00:00
|
|
|
if (NOT MSVC)
|
2021-04-06 19:02:50 +00:00
|
|
|
target_compile_options(NESEmulator PRIVATE -Wno-implicit-fallthrough -Wno-format -Wno-pointer-compare
|
|
|
|
-Wno-memset-elt-size)
|
2022-02-21 09:04:16 +00:00
|
|
|
endif ()
|