-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (24 loc) · 1.01 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
cmake_minimum_required(VERSION 3.25)
project(mister8 VERSION 0.0.1)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_executable(mister8)
target_include_directories(mister8 PUBLIC lib/raygui)
target_sources(mister8
PRIVATE src/audio.h
PRIVATE src/audio.c
PRIVATE src/chip8.h
PRIVATE src/instructions.h
PRIVATE src/input.c
PRIVATE src/input.h
PRIVATE src/main.c
PRIVATE src/raygui_impl.c
PRIVATE src/util.c
PRIVATE src/util.h
)
target_compile_options(mister8 PUBLIC -Wall -Wextra -Wpedantic -Wno-dollar-in-identifier-extension
-Wshadow -Wconversion -O3
)
target_link_options(mister8 PUBLIC -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
)