-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·41 lines (30 loc) · 944 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
cmake_minimum_required(VERSION 3.22)
project(ttdbg8080 C)
set(CMAKE_C_STANDARD 23)
option(BUILD_ASAN "Build with -fsanitize=address" OFF)
option(BUILD_DEBUG "Build with debug symbols" OFF)
option(BUILD_FAST "Build with -O3" OFF)
if(BUILD_ASAN)
add_compile_options(-fsanitize=address)
add_link_options(-fsanitize=address)
endif(BUILD_ASAN)
if(BUILD_DEBUG)
add_compile_options(-g)
endif(BUILD_DEBUG)
if(BUILD_FAST)
add_compile_options(-O3)
endif(BUILD_FAST)
add_compile_definitions(PATH="${CMAKE_CURRENT_LIST_DIR}")
include_directories(./src/8080emu)
add_executable(ttdbg8080
src/main.c
src/8080emu/handleState.h
src/8080emu/handleState.c
src/8080emu/opcodes.h
src/8080emu/opcodes.c
src/8080emu/breakpoints.h
src/8080emu/breakpoints.c
src/8080disassemble/disassemble8080.h
src/8080disassemble/disassemble8080.c
src/lib/intDefs.h
)