-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
45 lines (35 loc) · 891 Bytes
/
CMakeLists.txt
File metadata and controls
45 lines (35 loc) · 891 Bytes
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
cmake_minimum_required(VERSION 3.30)
project(lax C CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "-fno-exceptions")
include(FetchContent)
FetchContent_Declare(
SDL3
GIT_REPOSITORY https://github.com/libsdl-org/SDL.git
GIT_TAG release-3.2.14
)
FetchContent_MakeAvailable(SDL3)
FetchContent_Declare(
asmjit
GIT_REPOSITORY https://github.com/asmjit/asmjit
GIT_TAG 5134d396bd00c1b63259387acdbb12dfdf009f9b
)
FetchContent_MakeAvailable(asmjit)
set(ASMJIT_STATIC TRUE)
add_executable(lax
src/main.cpp
src/Instruction.cpp
src/Instruction.h
src/Rom.cpp
src/Analysis.cpp
src/Analysis.h
src/Bitset8.h
src/Generator.cpp
src/Generator.h
src/CpuJitRuntime.cpp
src/CpuJitRuntime.h
)
target_link_libraries(lax
asmjit::asmjit
SDL3::SDL3
)