Skip to content

Commit

Permalink
Merge pull request #1 from killerasus/main
Browse files Browse the repository at this point in the history
Create initial CMakeLists.txt
  • Loading branch information
abaffa authored Apr 25, 2021
2 parents d5c2940 + c561385 commit b8a43b2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

project(zx80_emul)

find_package(SDL2 CONFIG REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})

add_executable(zx80_emul
src/main.cpp
src/z80_memory.cpp
src/z80.cpp
src/zx80_keyboard.cpp
src/zx80_screen.cpp
)

target_include_directories(zx80_emul PUBLIC include)

target_link_libraries(zx80_emul PRIVATE SDL2::SDL2 SDL2::SDL2main)

0 comments on commit b8a43b2

Please sign in to comment.