-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (34 loc) · 993 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.20)
project(gizmo)
set(SOURCE_FILES
src/main.cpp
src/utils.cpp
src/common.cpp
src/display/display.cpp
src/display/oam.cpp
src/display/virt_ram.cpp
src/memory_map/memory_map.cpp
src/events/window_events.cpp
src/events/input_events.cpp
src/renderer/draw.cpp)
add_executable(gizmo ${SOURCE_FILES})
# Add glad
add_subdirectory(lib/glad)
target_link_libraries(gizmo glad)
include_directories(lib/glad/include)
# Add glfw
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
add_subdirectory(lib/glfw)
include_directories(lib/glfw)
include_directories(lib/glfw/include)
target_link_libraries(gizmo glfw ${GLFW_LIBRARIES})
# Add spdlog
add_subdirectory(lib/spdlog)
target_link_libraries(gizmo spdlog::spdlog)
# Add ImGUI
include_directories(lib/imgui)
include_directories(lib/imgui/backends)
# Add SDL
include_directories(lib/sdl)