2019-08-31 01:46:28 +00:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project(chip8)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
|
2022-10-28 20:58:52 +00:00
|
|
|
add_subdirectory(3rdParty/glad EXCLUDE_FROM_ALL)
|
|
|
|
add_subdirectory(3rdParty/sdl-2.0.20 EXCLUDE_FROM_ALL)
|
|
|
|
add_subdirectory(3rdParty/imgui-1.88 EXCLUDE_FROM_ALL)
|
2019-08-31 01:46:28 +00:00
|
|
|
|
|
|
|
add_executable(
|
|
|
|
chip8
|
|
|
|
Source/Chip8.cpp
|
|
|
|
Source/Main.cpp
|
|
|
|
Source/Platform.cpp)
|
|
|
|
|
|
|
|
target_compile_options(chip8 PRIVATE -Wall)
|
|
|
|
|
2022-10-28 20:58:52 +00:00
|
|
|
target_link_libraries(chip8 PRIVATE glad SDL2 imgui)
|
|
|
|
|