diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5edf23b..994b703 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,7 @@ set(emulator_sources bus.cpp emulator.cpp gdbremote_parser.cpp + graphics.cpp m68k_debugging.cpp vdp.cpp ) @@ -28,6 +29,7 @@ set(musashi_m68k_sources musashi-m68k/softfloat/softfloat.c ${CMAKE_CURRENT_BINARY_DIR}/m68kops.c ) + add_executable(m68kmake musashi-m68k/m68kmake.c) target_include_directories(m68kmake PRIVATE musashi-m68k) add_custom_command( @@ -45,12 +47,20 @@ target_include_directories(musashi_m68k PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ) +# TODO make SDL2 optional for headless mode +find_package(SDL2 REQUIRED) + add_executable(emulator ${emulator_sources}) target_link_libraries(emulator musashi_m68k) +# TODO make SDL2 optional for headless mode +target_include_directories(emulator PRIVATE ${SDL2_INCLUDE_DIRS}) +# TODO make SDL2 optional for headless mode +target_link_libraries(emulator ${SDL2_LIBRARIES}) target_compile_definitions(emulator PRIVATE DEBUG_TRACE_INSTRUCTIONS=0 DEBUG_TRACE_GDB_REMOTE=0 DEBUG_TRACE_VDP_ACCESS=1 + HAS_GRAPHICS=1 ) ## Target for GDB Remote Debugging protocol implementation testing |