From c561385e6e068bb2b54e73059ac024ead45a63c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ba=C3=A8re=20Pedrazzi=20Lomba=20de=20Araujo?= Date: Sun, 25 Apr 2021 17:02:37 -0300 Subject: [PATCH] Create initial CMakeLists.txt Lean CMakeLists to generate project with Cmake. TODO: - Add tests --- CMakeLists.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..1ed81fd --- /dev/null +++ b/CMakeLists.txt @@ -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) \ No newline at end of file