2018-02-01 23:19:34 +00:00
|
|
|
file(GLOB MAPPER_SRCS fixNES/mapper/*.c)
|
|
|
|
add_library(NESEmulator CNESEmulator.hpp CNESEmulator.cpp CNESShader.hpp CNESShader.cpp malloc.h
|
2018-02-03 00:35:19 +00:00
|
|
|
apu.c fixNES/audio_fds.c fixNES/audio_mmc5.c fixNES/audio_vrc6.c fixNES/audio_vrc7.c
|
|
|
|
fixNES/audio_n163.c fixNES/audio_s5b.c fixNES/cpu.c ppu.c fixNES/mem.c fixNES/input.c
|
2018-02-01 23:19:34 +00:00
|
|
|
fixNES/mapper.c fixNES/mapperList.c fixNES/fm2play.c fixNES/vrc_irq.c ${MAPPER_SRCS})
|
2020-09-28 20:54:40 +00:00
|
|
|
hsh_sources(CNESShader.cpp)
|
2019-06-12 02:05:17 +00:00
|
|
|
target_include_directories(NESEmulator PRIVATE ${CMAKE_SOURCE_DIR}/DataSpec ${CMAKE_SOURCE_DIR}/Runtime
|
|
|
|
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)
|
2020-09-28 20:54:40 +00:00
|
|
|
target_link_libraries(NESEmulator PUBLIC hecl-full RuntimeCommon)
|
2019-06-12 02:05:17 +00:00
|
|
|
if (NOT MSVC)
|
|
|
|
target_compile_options(NESEmulator PRIVATE -Wno-implicit-fallthrough -Wno-format -Wno-pointer-compare
|
|
|
|
-Wno-memset-elt-size)
|
2020-09-28 20:54:40 +00:00
|
|
|
endif()
|
|
|
|
target_hsh(NESEmulator)
|