nesemu/gui/CMakeLists.txt

13 lines
480 B
CMake

set(HEADERS gui.h main_window.h)
set(SOURCE gui.c main_window.c)
if (NES_DEBUG)
list(APPEND HEADERS char_map.h pattern_window.h nametable_window.h dbg_pattern_table.h dbg_nametable.h dbg_palette.h)
list(APPEND SOURCE char_map.c pattern_window.c nametable_window.c dbg_pattern_table.c dbg_nametable.c dbg_palette.c)
endif (NES_DEBUG)
add_library(nes_gui ${SOURCE} ${HEADERS})
add_subdirectory(components)
target_link_libraries(nes_gui nes_gui_components log.c SDL2_ttf)