-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (32 loc) · 981 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
cmake_minimum_required(VERSION 3.7)
project(gbemu)
find_package(SDL2 REQUIRED)
find_package(OpenGL REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
add_executable(gbemu src/main.cpp
src/cpu.cpp
src/ppu.cpp
external/src/imgui.cpp
external/src/imgui_demo.cpp
external/src/imgui_draw.cpp
external/src/imgui_widgets.cpp
external/src/imgui_impl_sdl.cpp
external/src/imgui_impl_opengl2.cpp
external/src/glad.cpp
src/timer.cpp
src/disas.cpp
src/opcodes.cpp
src/disas.cpp
src/util.cpp
src/mbc.cpp
include/cpu.hpp
include/opcodes.hpp
include/ppu.hpp
include/timer.hpp
include/disas.hpp
include/util.hpp
include/mbc.hpp src/apu.cpp)
target_include_directories(gbemu PRIVATE include external/include)
target_link_libraries(gbemu ${SDL2_LIBRARIES} ${OPENGL_LIBRARIES} ${CMAKE_DL_LIBS})
target_compile_options(gbemu PRIVATE -fsanitize=address)
target_link_options(gbemu PRIVATE -fsanitize=address)