-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (48 loc) · 1.07 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
cmake_minimum_required(VERSION 3.7)
project(x86)
set(CMAKE_CXX_STANDARD 14)
include_directories(.)
find_package(SDL REQUIRED)
include_directories(${SLD_INCLUDE_DIRECTORIES})
add_compile_options(-D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I./hw -lSDL)
add_executable(x86
hw/board.cpp
hw/board.hpp
hw/bus.cpp
hw/bus.hpp
hw/CMOS.cpp
hw/CMOS.hpp
hw/cpu.cpp
hw/cpu.hpp
hw/device.hpp
hw/DMA.cpp
hw/DMA.hpp
hw/pic.cpp
hw/pic.hpp
instruction_defs.hpp
hw/IOBus.cpp
hw/IOBus.hpp
main.cpp
modrm.cpp
modrm.hpp
ops_0x0.cpp
ops_0x1.cpp
ops_0x2.cpp
ops_0x3.cpp
ops_0x5.cpp
ops_0x7.cpp
ops_0x8.cpp
ops_0x9.cpp
ops_0xA.cpp
ops_0xB.cpp
ops_0xC.cpp
ops_0xD.cpp
ops_0xE.cpp
ops_0xF.cpp
ops_f8.cpp
hw/ram.cpp
hw/ram.hpp
hw/rom.cpp
hw/rom.hpp
hw/display.cpp)
target_link_libraries(x86 ${SDL_LIBRARY})